Sha256: 25d2b37160af220e6c530d46b2de8260da29940f77af5f6aef6fd0814f992271

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

module Antlr4ruby

  class Trees
    def self._find_all_nodes: (_ParseTree, Integer, bool, Array[_ParseTree]) -> void

    def self.find_all_nodes: (_ParseTree, Integer, bool) -> Array[_ParseTree]

    def self.find_all_rule_nodes: (_ParseTree, Integer) -> Array[_ParseTree]

    def self.find_all_token_nodes: (_ParseTree, Integer) -> Array[_ParseTree]

    def self.find_node_such_that: (_Tree?, _Predicate[_Tree]) -> _Tree?

    def self.get_ancestors: (_Tree) -> Array[_Tree]

    def self.get_children: (_Tree) -> Array[_Tree]

    def self.get_descendants: (_ParseTree) -> Array[_ParseTree]

    def self.get_node_text: (_Tree, recognizer: Parser?, rule_names: Array[String]?) -> String

    def self.get_root_of_subtree_enclosing_region: (_ParseTree, Integer, Integer) -> ParserRuleContext?

    def self.is_ancestor_of?: (_Tree, _Tree) -> bool

    def self.strip_children_out_of_range: (ParserRuleContext, ParserRuleContext, Integer, Integer) -> void

    def self.to_string_tree: (_Tree, recognizer: Parser?, rule_names: Array[String]?) -> String
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 sig/antlr4ruby/tree/trees.rbs