Class: BELParser::Language::Semantics::NestedStatementWithoutObjectWarning
- Inherits:
-
SemanticsWarning
- Object
- SemanticsResult
- SemanticsWarning
- BELParser::Language::Semantics::NestedStatementWithoutObjectWarning
- Defined in:
- lib/bel_parser/language/semantics/nested_statement_without_object.rb
Overview
Represents a SemanticsWarning when a nested Parsers::AST::Statement does not have an object.
Instance Attribute Summary collapse
-
#non_causal_relationship ⇒ Object
readonly
Returns the value of attribute non_causal_relationship.
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(stmt_node, spec) ⇒ NestedStatementWithoutObjectWarning
constructor
A new instance of NestedStatementWithoutObjectWarning.
- #to_s ⇒ Object
Methods inherited from SemanticsWarning
Methods inherited from SemanticsResult
Constructor Details
#initialize(stmt_node, spec) ⇒ NestedStatementWithoutObjectWarning
Returns a new instance of NestedStatementWithoutObjectWarning.
31 32 33 |
# File 'lib/bel_parser/language/semantics/nested_statement_without_object.rb', line 31 def initialize(stmt_node, spec) super(stmt_node, spec) end |
Instance Attribute Details
#non_causal_relationship ⇒ Object (readonly)
Returns the value of attribute non_causal_relationship.
29 30 31 |
# File 'lib/bel_parser/language/semantics/nested_statement_without_object.rb', line 29 def non_causal_relationship @non_causal_relationship end |
Instance Method Details
#to_s ⇒ Object
35 36 37 38 39 |
# File 'lib/bel_parser/language/semantics/nested_statement_without_object.rb', line 35 def to_s <<-MSG.gsub(/ {12}/, '') Nested statement does not have an object. MSG end |