Sha256: 53a11e3266a0596bca18d31a6d228eebfaae9e0345be344e3e2bd751848c129d

Contents?: true

Size: 559 Bytes

Versions: 111

Compression:

Stored size: 559 Bytes

Contents

require_relative 'semantics_result'

module BELParser
  module Language
    module Semantics
      # SemanticsWarning defines a {SemanticsResult} that should be regarded as
      # a warning with the expression.
      class SemanticsWarning < SemanticsResult
        def initialize(expression_node, specification)
          super(expression_node, specification)
        end

        def success?
          false
        end

        def failure?
          true
        end

        def to_s
          "Warning: #{msg}"
        end
      end
    end
  end
end

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
bel_parser-1.0.0.alpha.46 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.45-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.45 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.44-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.44 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.43-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.43 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.42-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.42 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.41-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.41 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.40-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.40 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.39-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.39 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.38-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.38 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.37-java lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.37 lib/bel_parser/language/semantics_warning.rb
bel_parser-1.0.0.alpha.36-java lib/bel_parser/language/semantics_warning.rb