diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/features')
7 files changed, 24 insertions, 24 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_duplicate_into_dict.gd b/modules/gdscript/tests/scripts/analyzer/features/enum_duplicate_into_dict.gd index 3076e7069f..8e6bb22a12 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/enum_duplicate_into_dict.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_duplicate_into_dict.gd @@ -1,7 +1,7 @@ enum Enum {V1, V2} func test(): - var enumAsDict : Dictionary = Enum.duplicate() + var enumAsDict: Dictionary = Enum.duplicate() var enumAsVariant = Enum.duplicate() print(Enum.has("V1")) print(enumAsDict.has("V1")) diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_function_typecheck.gd b/modules/gdscript/tests/scripts/analyzer/features/enum_function_typecheck.gd index 8a4e89d0d6..3a1863a1f4 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/enum_function_typecheck.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_function_typecheck.gd @@ -5,19 +5,19 @@ enum MyEnum { V0, V1, V2 } class InnerClass: enum MyEnum { V0, V2, V1 } - func inner_inner_no_class(e : MyEnum) -> MyEnum: + func inner_inner_no_class(e: MyEnum) -> MyEnum: print(e) return e - func inner_inner_class(e : InnerClass.MyEnum) -> InnerClass.MyEnum: + func inner_inner_class(e: InnerClass.MyEnum) -> InnerClass.MyEnum: print(e) return e - func inner_inner_class_class(e : EnumFunctionTypecheckOuterClass.InnerClass.MyEnum) -> EnumFunctionTypecheckOuterClass.InnerClass.MyEnum: + func inner_inner_class_class(e: EnumFunctionTypecheckOuterClass.InnerClass.MyEnum) -> EnumFunctionTypecheckOuterClass.InnerClass.MyEnum: print(e) return e - func inner_outer(e : EnumFunctionTypecheckOuterClass.MyEnum) -> EnumFunctionTypecheckOuterClass.MyEnum: + func inner_outer(e: EnumFunctionTypecheckOuterClass.MyEnum) -> EnumFunctionTypecheckOuterClass.MyEnum: print(e) return e @@ -59,19 +59,19 @@ class InnerClass: print() -func outer_outer_no_class(e : MyEnum) -> MyEnum: +func outer_outer_no_class(e: MyEnum) -> MyEnum: print(e) return e -func outer_outer_class(e : EnumFunctionTypecheckOuterClass.MyEnum) -> EnumFunctionTypecheckOuterClass.MyEnum: +func outer_outer_class(e: EnumFunctionTypecheckOuterClass.MyEnum) -> EnumFunctionTypecheckOuterClass.MyEnum: print(e) return e -func outer_inner_class(e : InnerClass.MyEnum) -> InnerClass.MyEnum: +func outer_inner_class(e: InnerClass.MyEnum) -> InnerClass.MyEnum: print(e) return e -func outer_inner_class_class(e : EnumFunctionTypecheckOuterClass.InnerClass.MyEnum) -> EnumFunctionTypecheckOuterClass.InnerClass.MyEnum: +func outer_inner_class_class(e: EnumFunctionTypecheckOuterClass.InnerClass.MyEnum) -> EnumFunctionTypecheckOuterClass.InnerClass.MyEnum: print(e) return e diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_native_access_types.gd b/modules/gdscript/tests/scripts/analyzer/features/enum_native_access_types.gd index 6a0a1e1969..0e4fd59267 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/enum_native_access_types.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_native_access_types.gd @@ -1,9 +1,9 @@ -func print_enum(e : TileSet.TileShape) -> TileSet.TileShape: +func print_enum(e: TileSet.TileShape) -> TileSet.TileShape: print(e) return e func test(): - var v : TileSet.TileShape + var v: TileSet.TileShape v = TileSet.TILE_SHAPE_SQUARE v = print_enum(v) v = print_enum(TileSet.TILE_SHAPE_SQUARE) diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_typecheck_inner_class.gd b/modules/gdscript/tests/scripts/analyzer/features/enum_typecheck_inner_class.gd index b05ae82048..1c4b19d8e0 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/enum_typecheck_inner_class.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_typecheck_inner_class.gd @@ -7,9 +7,9 @@ class InnerClass: static func test_inner_from_inner(): print("Inner - Inner") - var e1 : MyEnum - var e2 : InnerClass.MyEnum - var e3 : EnumTypecheckOuterClass.InnerClass.MyEnum + var e1: MyEnum + var e2: InnerClass.MyEnum + var e3: EnumTypecheckOuterClass.InnerClass.MyEnum print("Self ", e1, e2, e3) e1 = MyEnum.V1 @@ -36,7 +36,7 @@ class InnerClass: static func test_outer_from_inner(): print("Inner - Outer") - var e : EnumTypecheckOuterClass.MyEnum + var e: EnumTypecheckOuterClass.MyEnum e = EnumTypecheckOuterClass.MyEnum.V1 print("Outer.MyEnum ", e) @@ -45,8 +45,8 @@ class InnerClass: func test_outer_from_outer(): print("Outer - Outer") - var e1 : MyEnum - var e2 : EnumTypecheckOuterClass.MyEnum + var e1: MyEnum + var e2: EnumTypecheckOuterClass.MyEnum print("Self ", e1, e2) e1 = MyEnum.V1 @@ -63,8 +63,8 @@ func test_outer_from_outer(): func test_inner_from_outer(): print("Outer - Inner") - var e1 : InnerClass.MyEnum - var e2 : EnumTypecheckOuterClass.InnerClass.MyEnum + var e1: InnerClass.MyEnum + var e2: EnumTypecheckOuterClass.InnerClass.MyEnum print("Inner ", e1, e2) e1 = InnerClass.MyEnum.V1 diff --git a/modules/gdscript/tests/scripts/analyzer/features/getter_return_type.gd b/modules/gdscript/tests/scripts/analyzer/features/getter_return_type.gd index 38bb7f6e9c..5b0e5c0bf0 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/getter_return_type.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/getter_return_type.gd @@ -1,4 +1,4 @@ -var Value:int = 8 : +var Value:int = 8: get: return Value set(v): diff --git a/modules/gdscript/tests/scripts/analyzer/features/property_inline.gd b/modules/gdscript/tests/scripts/analyzer/features/property_inline.gd index 23eb011b23..474bb49a3b 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/property_inline.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/property_inline.gd @@ -6,21 +6,21 @@ var prop1: prop1 = value # Typed inline property -var prop2 : int: +var prop2: int: get: return prop2 set(value): prop2 = value # Typed inline property with default value -var prop3 : int = 1: +var prop3: int = 1: get: return prop3 set(value): prop3 = value # Typed inline property with backing variable -var _prop4 : int = 2 +var _prop4: int = 2 var prop4: int: get: return _prop4 diff --git a/modules/gdscript/tests/scripts/analyzer/features/use_preload_script_as_type.gd b/modules/gdscript/tests/scripts/analyzer/features/use_preload_script_as_type.gd index beabf3d2e5..5fbc91be5e 100644 --- a/modules/gdscript/tests/scripts/analyzer/features/use_preload_script_as_type.gd +++ b/modules/gdscript/tests/scripts/analyzer/features/use_preload_script_as_type.gd @@ -1,4 +1,4 @@ -const preloaded : GDScript = preload("gdscript_to_preload.notest.gd") +const preloaded: GDScript = preload("gdscript_to_preload.notest.gd") func test(): var preloaded_instance: preloaded = preloaded.new() |