Method: YARD::Parser::Ruby::AstNode#initialize
- Defined in:
- lib/yard/parser/ruby/ast_node.rb
permalink #initialize(type, arr, opts = {}) ⇒ AstNode
Creates a new AST node
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/yard/parser/ruby/ast_node.rb', line 153 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] @docstring = nil end |