Sha256: 63e5b54398fb097ddfcf266ebd07b8c6597c1b6119f447dded5b781d32c21bf9

Contents?: true

Size: 342 Bytes

Versions: 31

Compression:

Stored size: 342 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module RBI
  class Visitor
    extend T::Helpers
    extend T::Sig

    abstract!

    sig { abstract.params(node: T.nilable(Node)).void }
    def visit(node); end

    sig { params(nodes: T::Array[Node]).void }
    def visit_all(nodes)
      nodes.each { |node| visit(node) }
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
rbi-0.0.12 lib/rbi/visitor.rb
rbi-0.0.11 lib/rbi/visitor.rb
rbi-0.0.10 lib/rbi/visitor.rb
rbi-0.0.9 lib/rbi/visitor.rb
rbi-0.0.8 lib/rbi/visitor.rb
rbi-0.0.7 lib/rbi/visitor.rb
rbi-0.0.6 lib/rbi/visitor.rb
rbi-0.0.5 lib/rbi/visitor.rb
rbi-0.0.4 lib/rbi/visitor.rb
rbi-0.0.3 lib/rbi/visitor.rb
rbi-0.0.2 lib/rbi/visitor.rb