Sha256: f0c4e5d944c457d90ddaf4948df572aff7ec3993ebd5aec454d197f9676371ce
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
module Yoda module Typing module Tree class LiteralWithInterpolation < Base def children @children ||= node.children.map(&method(:build_child)) end def type children.map(&:type) case node.type when :xstr, :dstr generator.string_type when :dsym generator.symbol_type end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yoda-language-server-0.9.0 | lib/yoda/typing/tree/literal_with_interpolation.rb |
yoda-language-server-0.8.0 | lib/yoda/typing/tree/literal_with_interpolation.rb |