Class: TreeHaver::LanguagePackAnalysis
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::LanguagePackAnalysis
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#dialect ⇒ Object
Returns the value of attribute dialect.
-
#has_error ⇒ Object
Returns the value of attribute has_error.
-
#language ⇒ Object
Returns the value of attribute language.
-
#root_type ⇒ Object
Returns the value of attribute root_type.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
383 384 385 |
# File 'lib/tree_haver/contracts.rb', line 383 def backend_ref @backend_ref end |
#dialect ⇒ Object
Returns the value of attribute dialect
383 384 385 |
# File 'lib/tree_haver/contracts.rb', line 383 def dialect @dialect end |
#has_error ⇒ Object
Returns the value of attribute has_error
383 384 385 |
# File 'lib/tree_haver/contracts.rb', line 383 def has_error @has_error end |
#language ⇒ Object
Returns the value of attribute language
383 384 385 |
# File 'lib/tree_haver/contracts.rb', line 383 def language @language end |
#root_type ⇒ Object
Returns the value of attribute root_type
383 384 385 |
# File 'lib/tree_haver/contracts.rb', line 383 def root_type @root_type end |
Instance Method Details
#kind ⇒ Object
384 385 386 |
# File 'lib/tree_haver/contracts.rb', line 384 def kind "tree-sitter" end |
#to_h ⇒ Object
388 389 390 391 392 393 394 395 396 397 |
# File 'lib/tree_haver/contracts.rb', line 388 def to_h { kind: kind, language: language, **(dialect ? { dialect: dialect } : {}), root_type: root_type, has_error: has_error, backend_ref: backend_ref.to_h } end |