class BELParser::Language::Semantics::SemanticsTypeWarning
Attributes
actual_type[R]
expected_type[R]
Public Class Methods
new(expression_node, spec, expected, actual)
click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 36 def initialize(expression_node, spec, expected, actual) super(expression_node, spec) @expected_type = expected.ast_type @actual_type = actual.type end
Public Instance Methods
to_s()
click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 42 def to_s %(Expected #{expected_type} type, but saw #{actual_type} type.) end