Class: MilkTea::TriviaTokenStream

Inherits:
Object
  • Object
show all
Defined in:
lib/milk_tea/core/token_stream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tokens, trivia) ⇒ TriviaTokenStream

Returns a new instance of TriviaTokenStream.



25
26
27
28
# File 'lib/milk_tea/core/token_stream.rb', line 25

def initialize(tokens, trivia)
  @tokens = tokens
  @trivia = trivia
end

Instance Attribute Details

#tokensObject (readonly)

Returns the value of attribute tokens.



23
24
25
# File 'lib/milk_tea/core/token_stream.rb', line 23

def tokens
  @tokens
end

#triviaObject (readonly)

Returns the value of attribute trivia.



23
24
25
# File 'lib/milk_tea/core/token_stream.rb', line 23

def trivia
  @trivia
end