Class: RBS::Inline::AST::Annotations::SyntaxErrorAssertion

Inherits:
Base
  • Object
show all
Defined in:
lib/rbs/inline/ast/annotations.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#source, #tree

Instance Method Summary collapse

Constructor Details

#initialize(tree, source) ⇒ SyntaxErrorAssertion

Returns a new instance of SyntaxErrorAssertion.



344
345
346
347
348
349
# File 'lib/rbs/inline/ast/annotations.rb', line 344

def initialize(tree, source)
  @tree = tree
  @source = source

  @error_string = tree.nth_tree(1).to_s
end

Instance Attribute Details

#error_stringObject (readonly)

: String



341
342
343
# File 'lib/rbs/inline/ast/annotations.rb', line 341

def error_string
  @error_string
end