class BELParser::Language::Semantics::SemanticsInvalidReturnTypeWarning

Public Class Methods

new(expression_node, spec, expected_return_types) click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 122
def initialize(expression_node, spec, expected_return_types)
  super(expression_node, spec)
  @expected_return_types = expected_return_types
end

Public Instance Methods

to_s() click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 127
def to_s
  function = @expression_node.string_literal
  %(Function of "#{function}" does not match return types: #{@expected_return_types.map(&:to_sym).join(', ')})
end