Class: PuppetLanguageServer::SessionState::ManifestDocument
- Defined in:
- lib/puppet-languageserver/session_state/document_store.rb
Instance Attribute Summary
Attributes inherited from Document
#content, #tokens, #uri, #version
Instance Method Summary collapse
Methods inherited from Document
Constructor Details
This class inherits a constructor from PuppetLanguageServer::SessionState::Document
Instance Method Details
#calculate_tokens! ⇒ Object
38 39 40 41 42 |
# File 'lib/puppet-languageserver/session_state/document_store.rb', line 38 def calculate_tokens! lexer = Puppet::Pops::Parser::Lexer2WithComments.new lexer.lex_string(content) @tokens = lexer.fullscan end |