Class: MilkTea::SemanticAnalyzer::Analysis

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/semantic_analyzer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ast:, module_name:, module_kind:, directives:, imports:, types:, interfaces:, attributes:, attribute_applications:, values:, functions:, methods:, implemented_interfaces:, local_completion_frames:, binding_resolution:, callable_value_identifier_sites:, callable_value_member_access_sites:, required_unsafe_lines:, uses_parallel_for:, resolved_expr_types: {}, resolved_call_kinds: {}, const_values: {}) ⇒ Analysis

Returns a new instance of Analysis.



52
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 52

def initialize(ast:, module_name:, module_kind:, directives:, imports:, types:, interfaces:, attributes:, attribute_applications:, values:, functions:, methods:, implemented_interfaces:, local_completion_frames:, binding_resolution:, callable_value_identifier_sites:, callable_value_member_access_sites:, required_unsafe_lines:, uses_parallel_for:, resolved_expr_types: {}, resolved_call_kinds: {}, const_values: {}) = super

Instance Attribute Details

#astObject (readonly)

Returns the value of attribute ast

Returns:

  • (Object)

    the current value of ast



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def ast
  @ast
end

#attribute_applicationsObject (readonly)

Returns the value of attribute attribute_applications

Returns:

  • (Object)

    the current value of attribute_applications



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def attribute_applications
  @attribute_applications
end

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def attributes
  @attributes
end

#binding_resolutionObject (readonly)

Returns the value of attribute binding_resolution

Returns:

  • (Object)

    the current value of binding_resolution



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def binding_resolution
  @binding_resolution
end

#callable_value_identifier_sitesObject (readonly)

Returns the value of attribute callable_value_identifier_sites

Returns:

  • (Object)

    the current value of callable_value_identifier_sites



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def callable_value_identifier_sites
  @callable_value_identifier_sites
end

#callable_value_member_access_sitesObject (readonly)

Returns the value of attribute callable_value_member_access_sites

Returns:

  • (Object)

    the current value of callable_value_member_access_sites



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def callable_value_member_access_sites
  @callable_value_member_access_sites
end

#const_valuesObject (readonly)

Returns the value of attribute const_values

Returns:

  • (Object)

    the current value of const_values



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def const_values
  @const_values
end

#directivesObject (readonly)

Returns the value of attribute directives

Returns:

  • (Object)

    the current value of directives



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def directives
  @directives
end

#functionsObject (readonly)

Returns the value of attribute functions

Returns:

  • (Object)

    the current value of functions



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def functions
  @functions
end

#implemented_interfacesObject (readonly)

Returns the value of attribute implemented_interfaces

Returns:

  • (Object)

    the current value of implemented_interfaces



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def implemented_interfaces
  @implemented_interfaces
end

#importsObject (readonly)

Returns the value of attribute imports

Returns:

  • (Object)

    the current value of imports



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def imports
  @imports
end

#interfacesObject (readonly)

Returns the value of attribute interfaces

Returns:

  • (Object)

    the current value of interfaces



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def interfaces
  @interfaces
end

#local_completion_framesObject (readonly)

Returns the value of attribute local_completion_frames

Returns:

  • (Object)

    the current value of local_completion_frames



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def local_completion_frames
  @local_completion_frames
end

#methodsObject (readonly)

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def methods
  @methods
end

#module_kindObject (readonly)

Returns the value of attribute module_kind

Returns:

  • (Object)

    the current value of module_kind



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def module_kind
  @module_kind
end

#module_nameObject (readonly)

Returns the value of attribute module_name

Returns:

  • (Object)

    the current value of module_name



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def module_name
  @module_name
end

#required_unsafe_linesObject (readonly)

Returns the value of attribute required_unsafe_lines

Returns:

  • (Object)

    the current value of required_unsafe_lines



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def required_unsafe_lines
  @required_unsafe_lines
end

#resolved_call_kindsObject (readonly)

Returns the value of attribute resolved_call_kinds

Returns:

  • (Object)

    the current value of resolved_call_kinds



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def resolved_call_kinds
  @resolved_call_kinds
end

#resolved_expr_typesObject (readonly)

Returns the value of attribute resolved_expr_types

Returns:

  • (Object)

    the current value of resolved_expr_types



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def resolved_expr_types
  @resolved_expr_types
end

#typesObject (readonly)

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def types
  @types
end

#uses_parallel_forObject (readonly)

Returns the value of attribute uses_parallel_for

Returns:

  • (Object)

    the current value of uses_parallel_for



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def uses_parallel_for
  @uses_parallel_for
end

#valuesObject (readonly)

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



51
52
53
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 51

def values
  @values
end