2022-05-02 20:59:59 +01:00
|
|
|
# typed: true
|
|
|
|
|
2020-08-09 11:32:26 +01:00
|
|
|
# DO NOT EDIT MANUALLY
|
|
|
|
# This is an autogenerated file for types exported from the `ast` gem.
|
2021-09-17 19:28:50 +01:00
|
|
|
# Please instead update this file by running `bin/tapioca gem ast`.
|
2020-06-14 11:40:07 +05:30
|
|
|
|
2021-09-10 21:21:17 +01:00
|
|
|
module AST; end
|
2020-06-14 11:40:07 +05:30
|
|
|
|
|
|
|
class AST::Node
|
2020-08-09 11:32:26 +01:00
|
|
|
def initialize(type, children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2020-06-14 11:40:07 +05:30
|
|
|
|
|
|
|
def +(array); end
|
|
|
|
def <<(element); end
|
|
|
|
def ==(other); end
|
|
|
|
def append(element); end
|
|
|
|
def children; end
|
|
|
|
def clone; end
|
|
|
|
def concat(array); end
|
2021-01-26 07:33:15 +00:00
|
|
|
def deconstruct; end
|
2020-06-14 11:40:07 +05:30
|
|
|
def dup; end
|
|
|
|
def eql?(other); end
|
|
|
|
def hash; end
|
2020-08-09 11:32:26 +01:00
|
|
|
def inspect(indent = T.unsafe(nil)); end
|
2020-06-14 11:40:07 +05:30
|
|
|
def to_a; end
|
|
|
|
def to_ast; end
|
2020-08-09 11:32:26 +01:00
|
|
|
def to_s(indent = T.unsafe(nil)); end
|
|
|
|
def to_sexp(indent = T.unsafe(nil)); end
|
2020-06-14 11:40:07 +05:30
|
|
|
def to_sexp_array; end
|
|
|
|
def type; end
|
2020-08-09 11:32:26 +01:00
|
|
|
def updated(type = T.unsafe(nil), children = T.unsafe(nil), properties = T.unsafe(nil)); end
|
2020-06-14 11:40:07 +05:30
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def assign_properties(properties); end
|
|
|
|
def fancy_type; end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def original_dup; end
|
|
|
|
end
|
|
|
|
|
|
|
|
class AST::Processor
|
2021-09-10 21:21:17 +01:00
|
|
|
include ::AST::Processor::Mixin
|
2020-06-14 11:40:07 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
module AST::Processor::Mixin
|
|
|
|
def handler_missing(node); end
|
|
|
|
def process(node); end
|
|
|
|
def process_all(nodes); end
|
|
|
|
end
|
|
|
|
|
|
|
|
module AST::Sexp
|
|
|
|
def s(type, *children); end
|
|
|
|
end
|