Class: BELParser::Language::Semantics::SemanticsMissingNamespaceWarning
- Inherits:
-
SemanticsWarning
- Object
- SemanticsResult
- SemanticsWarning
- BELParser::Language::Semantics::SemanticsMissingNamespaceWarning
- Defined in:
- lib/bel_parser/language/semantics_ast_warnings.rb
Instance Attribute Summary
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(expression_node, spec) ⇒ SemanticsMissingNamespaceWarning
constructor
A new instance of SemanticsMissingNamespaceWarning.
- #to_s ⇒ Object
Methods inherited from SemanticsWarning
Methods inherited from SemanticsResult
Constructor Details
#initialize(expression_node, spec) ⇒ SemanticsMissingNamespaceWarning
Returns a new instance of SemanticsMissingNamespaceWarning.
62 63 64 |
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 62 def initialize(expression_node, spec) super(expression_node, spec) end |
Instance Method Details
#to_s ⇒ Object
66 67 68 69 |
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 66 def to_s prefix = @expression_node.identifier && @expression_node.identifier.string_literal %(Missing namespace for prefix "#{prefix}".) end |