sig/definition_builder.rbs in rbs-1.0.6 vs sig/definition_builder.rbs in rbs-1.1.0

- old
+ new

@@ -8,11 +8,11 @@ attr_reader instance_cache: Hash[[TypeName, bool], Definition | false | nil] attr_reader singleton_cache: Hash[TypeName, Definition | false | nil] attr_reader singleton0_cache: Hash[TypeName, Definition | false | nil] attr_reader interface_cache: Hash[TypeName, Definition | false | nil] - def initialize: (env: Environment) -> void + def initialize: (env: Environment, ?ancestor_builder: AncestorBuilder?, ?method_builder: MethodBuilder?) -> void def validate_super_class!: (TypeName, Environment::ClassEntry) -> void def ensure_namespace!: (Namespace, location: Location?) -> void @@ -40,7 +40,11 @@ def source_location: (Definition::Ancestor::Instance::source, AST::Declarations::t) -> Location? def insert_variable: (TypeName, Hash[Symbol, Definition::Variable], name: Symbol, type: Types::t) -> void def define_methods: (Definition, interface_methods: Hash[Symbol, Definition::Method], methods: MethodBuilder::Methods, super_interface_method: bool) -> void + + def expand_alias: (TypeName) -> Types::t + + def update: (env: Environment, ancestor_builder: AncestorBuilder, except: _Each[TypeName]) -> DefinitionBuilder end end