Sha256: a2d4fa320f8f48b2981224ee3a2c6efb68dcd833c1ca5c61eaf27cf1320fe94d

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

require 'yoda/typing/tree/literal_inferable'

module Yoda
  module Typing
    module Tree
      class InterpolationText < Base
        include LiteralInferable

        # @!method node
        #   @return [AST::InterpolationTextNode]

        # @return [Types::Type]
        def infer_type
          node.children.each { |node| infer_child(node) }

          infer_literal(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/interpolation_text.rb
yoda-language-server-0.10.0 lib/yoda/typing/tree/interpolation_text.rb