Class: TreeHaver::LanguagePackProcessAnalysis

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backend_refObject

Returns the value of attribute backend_ref

Returns:

  • (Object)

    the current value of backend_ref



400
401
402
# File 'lib/tree_haver/contracts.rb', line 400

def backend_ref
  @backend_ref
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



400
401
402
# File 'lib/tree_haver/contracts.rb', line 400

def diagnostics
  @diagnostics
end

#importsObject

Returns the value of attribute imports

Returns:

  • (Object)

    the current value of imports



400
401
402
# File 'lib/tree_haver/contracts.rb', line 400

def imports
  @imports
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



400
401
402
# File 'lib/tree_haver/contracts.rb', line 400

def language
  @language
end

#structureObject

Returns the value of attribute structure

Returns:

  • (Object)

    the current value of structure



400
401
402
# File 'lib/tree_haver/contracts.rb', line 400

def structure
  @structure
end

Instance Method Details

#kindObject



401
402
403
# File 'lib/tree_haver/contracts.rb', line 401

def kind
  "tree-sitter-process"
end

#to_hObject



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