sig/definition_builder.rbs in rbs-1.0.0 vs sig/definition_builder.rbs in rbs-1.0.1

- old
+ new

@@ -3,11 +3,11 @@ attr_reader env: Environment attr_reader type_name_resolver: TypeNameResolver attr_reader ancestor_builder: AncestorBuilder attr_reader method_builder: MethodBuilder - attr_reader instance_cache: Hash[TypeName, Definition | false | nil] + 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 @@ -16,11 +16,11 @@ def ensure_namespace!: (Namespace, location: Location?) -> void def build_interface: (TypeName) -> Definition - def build_instance: (TypeName) -> Definition + def build_instance: (TypeName, ?no_self_types: bool) -> Definition def build_singleton0: (TypeName) -> Definition def build_singleton: (TypeName) -> Definition @@ -29,9 +29,10 @@ def merge_method: (TypeName, Hash[Symbol, Definition::Method], Symbol, Definition::Method, Substitution, ?implemented_in: :keep | TypeName | nil, ?keep_super: bool) -> void def merge_variable: (Hash[Symbol, Definition::Variable], Symbol, Definition::Variable, Substitution, ?keep_super: bool) -> void def try_cache: (TypeName, cache: Hash[TypeName, Definition | false | nil]) { () -> Definition } -> Definition + | [A] (TypeName, cache: Hash[A, Definition | false | nil], key: A) { () -> Definition } -> Definition def validate_params_with: (AST::Declarations::ModuleTypeParams, result: VarianceCalculator::Result) { (AST::Declarations::ModuleTypeParams::TypeParam) -> void } -> void def validate_type_params: (Definition, ancestors: AncestorBuilder::OneAncestors, methods: MethodBuilder::Methods) -> void