Class: RubyLexer::NestedContexts::AssignmentRhsContext
Instance Attribute Summary
#ender, #linenum, #starter
Instance Method Summary
collapse
#lhs, #lhs=, #matches?, #wantarrow
Constructor Details
Returns a new instance of AssignmentRhsContext.
164
165
166
|
# File 'lib/rubylexer/context.rb', line 164
def initialize(linenum)
super(nil,nil,linenum)
end
|
Instance Method Details
#endtoken(offset) ⇒ Object
176
177
178
|
# File 'lib/rubylexer/context.rb', line 176
def endtoken offset
AssignmentRhsEndToken.new offset
end
|
#multi_assign? ⇒ Boolean
173
174
175
|
# File 'lib/rubylexer/context.rb', line 173
def multi_assign?
@multi if defined? @multi
end
|
#see(lxr, msg) ⇒ Object
167
168
169
170
171
172
|
# File 'lib/rubylexer/context.rb', line 167
def see lxr,msg
case msg
when :semi; lxr.parsestack.pop
when :comma,:splat; @multi=true
end
end
|