Method: YARD::Parser::Ruby::AstNode#initialize
- Defined in:
- lib/yard/parser/ruby/ast_node.rb
#initialize(type, arr, opts = {}) ⇒ AstNode
Creates a new AST node
152 153 154 155 156 157 158 159 160 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 152 def initialize(type, arr, opts = {}) super(arr) self.type = type self.line_range = opts[:line] self.source_range = opts[:char] @fallback_line = opts[:listline] @fallback_source = opts[:listchar] @token = true if opts[:token] end |