| /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/tests/vm-benchmarks/src/vmb/ |
| D | shell.py | 22 from typing import Union, Optional 123 src: Union[str, Path], 124 dst: Union[str, Path]) -> ShellResult: 128 src: Union[str, Path], 129 dst: Union[str, Path]) -> ShellResult: 132 def get_filesize(self, filepath: Union[str, Path]) -> int: 163 src: Union[str, Path], 164 dst: Union[str, Path]) -> ShellResult: 168 src: Union[str, Path], 169 dst: Union[str, Path]) -> ShellResult: [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_call_params/ts_to_sts/ |
| D | generic_call_params.sts | 31 type Union = string | int; 34 const etsUnion: Union = etsInt; 45 const unionFoo = (a: Union, b: Union): Union[] => [a, b]; 144 return res as Array<Union> instanceof Array 145 && res[0] as Union == etsUnion as Union 146 && res[0] as Union == etsUnion as Union;
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_class_interface_property.sts | 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/plugins/ets/tests/interop_js/tests/getter/ets_to_ts/ |
| D | getter.sts | 69 type Union = int | string; 72 public _value: Union; 74 constructor(value: Union) { 78 public get value(): Union { 83 function create_union_type_getter_class_from_ets(arg: Union): UnionTypeClass { 159 function create_any_type_getter_class_from_ets_union(arg: Union): AnyTypeClass<Union> { 160 return new AnyTypeClass<Union>(arg);
|
| /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/06.widening_union_conversion/assn_var/ |
| D | assn-var-lit_n.sts | 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}}
|
| D | assn-var-lit.sts | 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}}
|
| D | assn-var-wd.sts | 19 Conversion from a union type to a wider union type. 20 Assignment context, variable, widening union conversion, implicit 21 params: to union type {{c.to_type}}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_as_parameter/ts_to_sts/ |
| D | generic_as_parameter.ts | 16 export type Union = string | number; alias 25 export const tsUnion: Union = tsNumber; 54 export function anyTypeParameterExplicitCallFromTsUnion(): Union { 55 return anyTypeParameter<Union>(tsUnion); 93 export function genericTypeFunctionExplicitCallFromTsUnion(): Union { 94 return genericTypeFunctionReturnAny<Union>(tsUnion); 111 export type gFunExtendUnion = <T extends Union> (arg: T) => T; 208 export function genericDefaultUnion<T = Union>(arg: T): T { 240 export function genericDefaultUnionCallFromTs(): Union { 241 return genericDefaultUnion<Union>(tsUnion);
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | union_types_1.sts | 42 assert x.num == 777: "Error! The num field of union must be 777"; 46 assert x.num == 1000: "Error! The num field of union must be 1000"; 53 assert x.num == 1000: "Error! The num field of union must be 1000"; 62 assert x.num == 41: "Error! The num field of union must be 41"; 64 assert 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/06.widening_union_conversion/comp_obj/ |
| D | comp-obj-lit_n.sts | 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/06.widening_union_conversion/call_cons/ |
| D | call-cons-lit.sts | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Call context, constructor, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| D | call-cons-un.sts | 19 Conversion from a non-union type to a union type. 20 Call context, constructor, 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/06.widening_union_conversion/call_meth/ |
| D | call-meth-lit.sts | 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}}
|
| D | call-meth-lit_n.sts | 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}}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.widening_union_conversion/call_lmbd/ |
| D | call-lmbd-lit_n.sts | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Call context, lambda, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|
| D | call-lmbd-un.sts | 19 Conversion from a non-union type to a union type. 20 Call context, lambda call, widening union conversion, implicit 21 params: to union type {{c.to_type}}
|
| D | call-lmbd-wd.sts | 19 Conversion from a union type to a wider union type. 20 Call context, lambda, 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/06.widening_union_conversion/call_func/ |
| D | call-func-lit.sts | 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-un.sts | 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}}
|
| D | call-func-lit_n.sts | 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.sts | 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}}
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.widening_union_conversion/decl_field/ |
| D | decl-field-lit_n.sts | 19 Conversion from a union type that consists of literals only to a non-union type. 20 Declaration context, instance field, widening union conversion, implicit 21 params: union of literals to {{c.to_type}}
|