Sha256: 25be169170e5575afd121a8fe12d3e114810777321ac77976fe4c3ca736f9e41

Contents?: true

Size: 370 Bytes

Versions: 19

Compression:

Stored size: 370 Bytes

Contents

class Token
	module OnPeriod
		def onClassify #
			if isOperand? # should not be parent
				if [:on_ident, :on_const].include?(dnext.kind)
					Token.addMod(first, "___theme_by_period")
				elsif ambiguousPeriodTheme?
					raise Error.new("Nested theme is referenced by single '.'")
				else
					Token.addMod(range, "___theme_by_period")
				end
			end
		end
	end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
YkLib-0.1.8.9 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.8 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.7 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.6 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.5 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.4 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.3 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.2 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8.1 lib/Yk/indenter/operand_period.rb
YkLib-0.1.8 lib/Yk/indenter/operand_period.rb
YkLib-0.1.7.1 lib/Yk/indenter/operand_period.rb
YkLib-0.1.7 lib/Yk/indenter/operand_period.rb
YkLib-0.1.6 lib/Yk/indenter/operand_period.rb
YkLib-0.1.5 lib/Yk/indenter/operand_period.rb
YkLib-0.1.4 lib/Yk/indenter/operand_period.rb
YkLib-0.1.3 lib/Yk/indenter/operand_period.rb
YkLib-0.1.2 lib/Yk/indenter/operand_period.rb
YkLib-0.1.1 lib/Yk/indenter/operand_period.rb
YkLib-0.1.0 lib/YkLib/Yk/indenter/operand_period.rb