Class: BELParser::Language::Syntax::SyntaxWarning
- Inherits:
-
SyntaxResult
- Object
- SyntaxResult
- BELParser::Language::Syntax::SyntaxWarning
- Defined in:
- lib/bel_parser/language/syntax_warning.rb
Overview
SyntaxWarning defines a SyntaxResult that should be regarded as an warning with the expression.
Direct Known Subclasses
UndefinedNamespaceValueWarning, Script::Syntax::UndefinedAnnotationValueWarning, Script::Syntax::UnsupportedBELVersionWarning
Instance Attribute Summary
Attributes inherited from SyntaxResult
#expression_node, #specification
Instance Method Summary collapse
- #failure? ⇒ Boolean
-
#initialize(expression_node, specification) ⇒ SyntaxWarning
constructor
A new instance of SyntaxWarning.
- #success? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from SyntaxResult
Constructor Details
#initialize(expression_node, specification) ⇒ SyntaxWarning
Returns a new instance of SyntaxWarning.
9 10 11 |
# File 'lib/bel_parser/language/syntax_warning.rb', line 9 def initialize(expression_node, specification) super(expression_node, specification) end |
Instance Method Details
#failure? ⇒ Boolean
17 18 19 |
# File 'lib/bel_parser/language/syntax_warning.rb', line 17 def failure? true end |
#success? ⇒ Boolean
13 14 15 |
# File 'lib/bel_parser/language/syntax_warning.rb', line 13 def success? false end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/bel_parser/language/syntax_warning.rb', line 21 def to_s "Warning: #{msg}" end |