Class: Mxrb::Semantic::Report
- Inherits:
-
Data
- Object
- Data
- Mxrb::Semantic::Report
- Defined in:
- lib/mxrb/semantic/analyzer.rb
Instance Attribute Summary collapse
-
#call_cycles ⇒ Object
readonly
Returns the value of attribute call_cycles.
-
#diagnostics ⇒ Object
readonly
Returns the value of attribute diagnostics.
-
#module_dependencies ⇒ Object
readonly
Returns the value of attribute module_dependencies.
-
#unreferenced ⇒ Object
readonly
Returns the value of attribute unreferenced.
-
#unresolved_references ⇒ Object
readonly
Returns the value of attribute unresolved_references.
Instance Method Summary collapse
Instance Attribute Details
#call_cycles ⇒ Object (readonly)
Returns the value of attribute call_cycles
9 10 11 |
# File 'lib/mxrb/semantic/analyzer.rb', line 9 def call_cycles @call_cycles end |
#diagnostics ⇒ Object (readonly)
Returns the value of attribute diagnostics
9 10 11 |
# File 'lib/mxrb/semantic/analyzer.rb', line 9 def diagnostics @diagnostics end |
#module_dependencies ⇒ Object (readonly)
Returns the value of attribute module_dependencies
9 10 11 |
# File 'lib/mxrb/semantic/analyzer.rb', line 9 def module_dependencies @module_dependencies end |
#unreferenced ⇒ Object (readonly)
Returns the value of attribute unreferenced
9 10 11 |
# File 'lib/mxrb/semantic/analyzer.rb', line 9 def unreferenced @unreferenced end |
#unresolved_references ⇒ Object (readonly)
Returns the value of attribute unresolved_references
9 10 11 |
# File 'lib/mxrb/semantic/analyzer.rb', line 9 def unresolved_references @unresolved_references end |
Instance Method Details
#errors ⇒ Object
13 |
# File 'lib/mxrb/semantic/analyzer.rb', line 13 def errors = diagnostics.select { _1.severity == :error } |
#valid? ⇒ Boolean
15 |
# File 'lib/mxrb/semantic/analyzer.rb', line 15 def valid? = errors.empty? |
#warnings ⇒ Object
14 |
# File 'lib/mxrb/semantic/analyzer.rb', line 14 def warnings = diagnostics.select { _1.severity == :warning } |