Class: TreeHaver::LanguagePackProcessAnalysis
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::LanguagePackProcessAnalysis
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#imports ⇒ Object
Returns the value of attribute imports.
-
#language ⇒ Object
Returns the value of attribute language.
-
#structure ⇒ Object
Returns the value of attribute structure.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
400 401 402 |
# File 'lib/tree_haver/contracts.rb', line 400 def backend_ref @backend_ref end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
400 401 402 |
# File 'lib/tree_haver/contracts.rb', line 400 def diagnostics @diagnostics end |
#imports ⇒ Object
Returns the value of attribute imports
400 401 402 |
# File 'lib/tree_haver/contracts.rb', line 400 def imports @imports end |
#language ⇒ Object
Returns the value of attribute language
400 401 402 |
# File 'lib/tree_haver/contracts.rb', line 400 def language @language end |
#structure ⇒ Object
Returns the value of attribute structure
400 401 402 |
# File 'lib/tree_haver/contracts.rb', line 400 def structure @structure end |
Instance Method Details
#kind ⇒ Object
401 402 403 |
# File 'lib/tree_haver/contracts.rb', line 401 def kind "tree-sitter-process" end |
#to_h ⇒ Object
405 406 407 408 409 410 411 412 413 414 |
# File 'lib/tree_haver/contracts.rb', line 405 def to_h { kind: kind, language: language, structure: (structure || []).map(&:to_h), imports: (imports || []).map(&:to_h), diagnostics: (diagnostics || []).map(&:to_h), backend_ref: backend_ref.to_h } end |