Method: Puppet::Parser::Parser#ast_context
- Defined in:
- lib/vendor/puppet/parser/parser_support.rb
#ast_context(include_docs = false, ast_line = nil) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/vendor/puppet/parser/parser_support.rb', line 43 def ast_context(include_docs = false, ast_line = nil) result = { :line => ast_line || lexer.line, :file => lexer.file } result[:doc] = lexer.getcomment(result[:line]) if include_docs result end |