| /arkcompiler/runtime_core/taihe/test/ani_union/idl/ |
| D | test_union.taihe | 26 union union_primitive { 37 union color_map_value1 { 42 union color_map_value2 { 47 union color_map_value3 { 52 union color_map_value4 { 57 union color_map_value5 { 62 union color_map_value6 { 67 union color_map_value7 { 72 union color_map_value8 { 77 union color_map_value9 { [all …]
|
| D | union_ani.taihe | 20 union InnerUnion { 26 union MyUnion { 34 union BasicUnion { 48 union TypedArrayUnion { 74 union ArrayUnion { 92 union StructUnion {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/ |
| D | assignment_of_arrays_with_union_types.params.yaml | 18 desc: Test an array with a union type of number and string. 22 desc: Test an array with a union type of boolean and number. 26 desc: Test an array with a union type of string and boolean. 30 desc: Test an array with a union type of number, string, and boolean. 34 desc: Test an array with a union type of an enum type and number. 44 desc: Test an array with a union type of an enum type and string. 54 desc: Test an array with a union type of an enum type and boolean. 64 desc: Test an array with a union type of an enum type, number, and string. 75 desc: Test an array with a union type of a string array and a boolean array. 79 desc: Test an array with a union type of optional boolean and number. [all …]
|
| D | assignment_of_arrays_with_union_types_n.params.yaml | 18 desc: Exception assignment of undefined to an array of object or string union type. 23 desc: Exception assignment of a number to an array of string or null union type. 27 desc: Exception assignment of a number to an array of boolean or object union type. 35 desc: Exception assignment of a date string to an array of custom class or number union type. 39 desc: Exception assignment of a boolean array to an array of string or function union type. 51 desc: Exception assignment of a date object to an array of custom class or Promise union type. 59 desc: Exception assignment of a number to an array of boolean or bigint union type. 63 desc: Exception assignment of a string to an array of number or Float64Array union type. 72 …sc: Exception assignment of a TextEncoder object to an array of custom class or WeakMap union type. 77 desc: Exception assignment of anumber to an array of string or SharedArrayBuffer union type. [all …]
|
| D | union_type_assignment.params.yaml | 15 - desc: Basic union type. 23 - desc: Basic union type(number - int). 31 - desc: Basic union type(number calculation). 39 - desc: Basic union type(number - float). 47 - desc: Basic union type(number - double). 55 - desc: Basic union type(number - negative number). 63 - desc: Basic union type(number - scientific notation). 71 - desc: Basic union type(number - negative scientific notation). 79 - desc: Basic union type(number infinity). 87 - desc: Basic union type(number -infinity). [all …]
|
| D | union_type_error_assignment.params.yaml | 15 - desc: Union type exception assignment. 22 - desc: Union type exception assignment(array). 29 - desc: Union type exception assignment(Literal type out of bounds). 36 - desc: Union type exception assignment(function parameter type does not match typescript). 44 - desc: Union type exception assignment(array element type restrictions-int). 56 …- desc: Union type exception assignment(The union type value of the interface property gave the wr… 68 - desc: Union type exception assignment(promise return value does not match-boolean). 74 …- desc: Union type exception assignment(literal type out of bounds-assignment exception assignment… 80 - desc: Union type exception assignment(function parameter type does not match typescript-array). 88 - desc: Union type exception assignment(array element type restrictions-array). [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/utils/ |
| D | small_vector.h | 213 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 221 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 234 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 241 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 243 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 245 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 249 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 257 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 259 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 261 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() [all …]
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| D | small_vector.h | 210 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 218 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 231 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 238 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 240 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 242 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 246 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 254 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 256 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() 258 // NOLINTNEXTLINE(cppcoreguidelines-pro-type-union-access) in SmallVector() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/01.subtyping/03.subtyping_for_union_types/ |
| D | positive.params.yaml | 17 Union type U (U1 | ... | Un) is a subtype of union type V (V1 | ... | Vm) if 25 Union type U (U1 | ... | Un) is a subtype of union type V (V1 | ... | Vm) if 36 … Non-union type T is a subtype of union type U (U1 | ... | Un) if T is assignable to a type of Ui 42 Union type U (U1 | ... | Un) is a subtype of non-union type T if each Ui 48 If union type normalization produces a single type, then this type is used 49 instead of the initial set of union types.
|
| D | negative.params.yaml | 17 Union type U (U1 | ... | Un) is a subtype of union type V (V1 | ... | Vm) if 25 Union type U (U1 | ... | Un) is a subtype of union type V (V1 | ... | Vm) if 36 … Non-union type T is a subtype of union type U (U1 | ... | Un) if T is assignable to a type of Ui
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/code_coverage/ |
| D | cmd_executor.py | 19 from typing import List, TextIO, Union, Optional 25 …def run_command(self, command: List[str], stdout: Union[TextIO, int] = subprocess.PIPE) -> Union[s… 29 def get_binary(self, binary_name: str, version: Optional[str] = None) -> Union[str, Path]: 34 …def run_command(self, command: List[str], stdout: Union[TextIO, int] = subprocess.PIPE) -> Union[s…
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/FixedArray/ |
| D | unionCommonMember_neg.ets | 54 /* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ 55 /* @@@ label2 Error TypeError: Member type must be the same for all union objects. */ 56 /* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ 57 /* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ 58 /* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ 59 /* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ 60 /* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ 61 /* @@@ label8 Error TypeError: Member type must be the same for all union objects. */
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/ |
| D | unionCommonMember_neg.ets | 54 /* @@@ label1 Error TypeError: Member type must be the same for all union objects. */ 55 /* @@@ label2 Error TypeError: Member type must be the same for all union objects. */ 56 /* @@@ label3 Error TypeError: Member type must be the same for all union objects. */ 57 /* @@@ label4 Error TypeError: Member type must be the same for all union objects. */ 58 /* @@@ label5 Error TypeError: Member type must be the same for all union objects. */ 59 /* @@@ label6 Error TypeError: Member type must be the same for all union objects. */ 60 /* @@@ label7 Error TypeError: Member type must be the same for all union objects. */ 61 /* @@@ label8 Error TypeError: Member type must be the same for all union objects. */
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/ |
| D | generic_call_params.ets | 31 type Union = string | int; 34 const etsUnion: Union = etsInt; 45 const unionFoo = (a: Union, b: Union): FixedArray<Union> => [a, b]; 143 return res as Array<Union> instanceof Array 144 && res[0] as Union == etsUnion as Union 145 && res[0] as Union == etsUnion as Union;
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
| D | shell.py | 23 from typing import Union, Optional 142 src: Union[str, Path], 143 dst: Union[str, Path]) -> ShellResult: 147 src: Union[str, Path], 148 dst: Union[str, Path]) -> ShellResult: 151 def install(self, package: Union[str, Path], name: str = '') -> ShellResult: 154 def get_filesize(self, filepath: Union[str, Path]) -> int: 185 src: Union[str, Path], 186 dst: Union[str, Path]) -> ShellResult: 190 src: Union[str, Path], [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_class_interface_property.ets | 67 …NonSendableClass2 | null; // ERROR, sendable class property cannot be non-sendable-class union type 68 …ndableInterface | number; // ERROR, sendable class property cannot be non-sendable-class union type 69 …lass2 | null | undefined; // ERROR, sendable class property cannot be non-sendable-class union type 78 …: ConstEnum | ConstEnum1.Memc1; // ERROR, sendable class property cannot be non-sendable union type 79 …prop15: ConstEnum2 | RegularEnum1; // ERROR, sendable class property cannot be non-sendable union … 80 …rEnum2.Memr2 | SendableClass10; // ERROR, sendable class property cannot be non-sendable union type 84 … alias6 | NonSendableInterface; // ERROR, sendable class property cannot be non-sendable union type 85 …prop21: alias7 | SendableClass3; // ERROR, sendable class property cannot be non-sendable union ty… 86 …prop22: SendableClass10 | alias8; // ERROR, sendable class property cannot be non-sendable union t… 91 prop27: true | false; // ERROR, sendable class property cannot be non-sendable union type [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/ |
| D | decorator_value.py | 22 from typing import Union, List, Tuple, Any, Callable, Optional, Set, Type 30 CliOptionType = Union[str, List[str]] 88 def _to_qemu(names: Union[str, List[Tuple[str, bool]], None]) -> Optional[QemuKind]: 103 TestSuiteFromCliValue = Optional[Union[bool, List[str]]] 108 def _to_test_suites(names: Optional[List[Union[str, TestSuitesFromCliTuple]]]) -> Optional[Set[str]… 127 def _to_bool(cli_value: Union[str, bool, None]) -> Optional[bool]: 135 def _to_int(cli_value: Union[str, int, None]) -> Optional[int]: 143 def _to_processes(cli_value: Union[str, int, None]) -> Optional[int]: 151 def _to_jit_preheats(cli_value: Union[str, int, None], *, prop: str, default_if_empty: int) -> Opti… 167 def _to_time_edges(cli_value: Union[str, List[int], None]) -> Optional[List[int]]: [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/assn_var/ |
| D | assn-var-lit_n.ets | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Assignment context, variable, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | union_types_1.ets | 42 assertEQ(x.num, 777, "Error! The num field of union must be 777"); 46 assertEQ(x.num, 1000, "Error! The num field of union must be 1000"); 53 assertEQ(x.num, 1000, "Error! The num field of union must be 1000"); 62 assertEQ(x.num, 41, "Error! The num field of union must be 41"); 64 assertEQ(x.num, 42, "Error! The num field of union must be 42");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/call_func/ |
| D | call-func-lit_n.ets | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Call context, function, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| D | call-func-wd.ets | 19 Conversion from a union type to a wider union type. 20 Call context, function, widening union conversion, implicit 21 params: to union type {{c.to_type}}
|
| D | call-func-un.ets | 19 Conversion from a non-union type to a union type. 20 Call context, function call, widening union conversion, implicit 21 params: to union type {{c.to_type}}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/comp_obj/ |
| D | comp-obj-lit.ets | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Composite context, object, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| D | comp-obj-lit_n.ets | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Composite context, object, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/call_meth/ |
| D | call-meth-lit_n.ets | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Call context, instance method, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|