Sha256: d920d797be4d717083aec4468749d49d87e2509b9a39204a38436303fa130e3b

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

module Yoda
  module Typing
    module Tree
      class LogicalOperator < Base
        # @!method node
        #   @return [AST::LeftOperatorNode, AST::CenterOperatorNode]

        # @return [Types::Type]
        def infer_type
          # TODO
          generator.union_type(*node.children.map { |node| infer_child(node) })
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/typing/tree/logical_operator.rb
yoda-language-server-0.10.0 lib/yoda/typing/tree/logical_operator.rb