| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | GC.sts | 70 * @throws IllegalArgumentException if cause of GC is invalid or 78 …artGC(cause: int, callback: () => void, inPlaceMode: boolean = GC.NOT_IN_PLACE_MODE): long throws { 88 * @throws IllegalArgumentException if cause of GC is invalid or 90 * @throws UnsupportedOperationException if current GC does not support requested cause 91 …* @throws IllegalStateException if try to run threshold GC collection not in place after calling p… 98 public static startGC(cause: int, inPlaceMode: boolean = GC.NOT_IN_PLACE_MODE): long throws { 102 …e static native startGCImpl(cause: int, callback: Object | null, runInPlace: boolean): long throws; 119 * @throws IllegalArgumentException if cause of GC is invalid or 121 * @throws UnsupportedOperationException if VM is running with incorrect GC trigger 123 public static native scheduleGcAfterNthAlloc(counter: int, cause: int): void throws; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/extended_features/ |
| D | @arkts.collections.d.ets | 154 * @throws { BusinessError } 401 - Parameter error. Invalid separator. 168 * @throws { BusinessError } 401 - Parameter error. Invalid `start` or `end` parameters. 205 * @throws { BusinessError } 401 - Parameter error. 206 * @throws { BusinessError } 10200011 - The create method cannot be bound. 218 * @throws { BusinessError } 401 - Parameter error. 219 * @throws { BusinessError } 10200011 - The from method cannot be bound. 230 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked. 242 * @throws { BusinessError } 401 - Parameter error. 243 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked. 255 * @throws { BusinessError } 10200011 - The pop method cannot be bound. [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/08.function_types/ |
| D | function_type.params.yaml | 22 type ThrowingOp = () => boolean throws 23 …let op: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return true… 25 type ThrowingOp = () => boolean throws 26 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru… 29 type ThrowingOp = () => boolean throws 30 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru… 42 type ThrowingOp = () => boolean throws 43 …let op1: ThrowingOp = () => boolean throws Exception { throws new Exception("test ex"); return tru…
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | method_override_throw_1.sts | 17 foo1(): void throws; 18 foo2(param: () => void throws): void rethrows; 23 override foo1(): void throws {} 24 override foo2(param: () => void throws): void rethrows {} 29 foo1(): void throws {} 30 foo2(param: () => void throws): void rethrows {} 35 override foo1(): void throws {} 36 override foo2(param: () => void throws): void rethrows {}
|
| D | variable_throw_function_1.sts | 18 function bar() : void throws {} 20 function baz(e: () => void throws) : void rethrows {} 23 let throwing1: () => void throws = foo; 25 let throwing2: () => void throws = bar; 27 let throwing3: (e: () => void throws) => void throws = baz;
|
| D | lambdaThrowsRethrows.sts | 16 let lambda: () => void throws = (): void throws => {} 18 …t lambda2: (param: (c: int, b: int) => char throws) => void throws = (param: (c: int, b: int) => c…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/03.constructor_overloading/ |
| D | co2_over.params.yaml | 17 // override-equivalent signatures, different throws clause 20 constructor(p: number) throws { if (p < 0) throw new Ex() } 27 // override-equivalent signatures, different throws clause 30 constructor(p: Number) throws { if (p < 0) throw new Ex() } 37 // override-equivalent signatures, different throws clause 40 constructor(p: string) throws { if (p < 0) throw new Ex() } 51 constructor(p: A) throws { if (p instanceof Error) throw new Ex() } 62 constructor(p: A|string) throws { if (p instanceof A) throw new Ex() } 69 // primitives and boxed, different throws clauses 78 constructor(p: byte) throws { if (p == 0) throw ex; else this.t = "byte" } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/07.function_and_method_overloading/02.class_method_overloading/ |
| D | cm_over2.params.yaml | 46 // override-equivalent signatures, difference in throws clause 48 meth(p: number): string throws { if (p > 0) throw new Ex(); else return "" } 57 // override-equivalent signatures, difference in throws clause 60 meth(p: B): string throws { if (p instanceof A) throw new Ex(); else return "" } 67 // override-equivalent signatures, difference in throws clause 70 …meth(p: string|A|null): Ex throws { if (p instanceof string) throw new Ex(); else return new Ex() } 76 // primitives and boxed, different return types and throws clauses 80 meth(p: byte): byte throws { if (p == 0) throw ex; else return Byte.MIN_VALUE } 83 … meth(p: Short): Short throws { if (p == 0) throw ex; else return Short.MAX_VALUE as Short } 84 meth(p: int): int throws { if (p == 0) throw ex; else return Int.MIN_VALUE } [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/15.exceptions/01.throwing_functions/ |
| D | lambda.sts | 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu… 24 type func = (x: int) => int throws; 26 function bar(): void throws { 27 let foo: func = (x: int): int throws => { throw new TestException(); return 5; }; 32 function main(): void throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/ |
| D | pin_object.sts | 32 pinObjTestsuite.addTest("SimpleTest", (): void throws => 49 pinObjTestsuite.addTest("AllocatePinnedArrayTest", (): void throws => 61 pinObjTestsuite.addTest("AllocateNegativeSizePinnedArrayTest", (): void throws => 64 expectError((): void throws => { GC.allocatePinnedBooleanArray(-1) }, expectedError); 65 expectError((): void throws => { GC.allocatePinnedByteArray(-1) }, expectedError); 66 expectError((): void throws => { GC.allocatePinnedCharArray(-1) }, expectedError); 67 expectError((): void throws => { GC.allocatePinnedShortArray(-1) }, expectedError); 68 expectError((): void throws => { GC.allocatePinnedIntArray(-1) }, expectedError); 69 expectError((): void throws => { GC.allocatePinnedLongArray(-1) }, expectedError); 70 expectError((): void throws => { GC.allocatePinnedFloatArray(-1) }, expectedError); [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/templates/ |
| D | Template.sts | 51 function doGC(): void throws { 73 function runIters(phase: String, count: int, time: int): void throws { 99 function main(): void throws { 187 public static consumeBool(boolc: boolean): void throws { 193 public static consumeChar(charc: char): void throws { 199 public static consumeByte(bytec: byte): void throws { 205 public static consumeShort(shortc: short): void throws { 211 public static consumeInt(intc: int): void throws { 217 public static consumeLong(longc: long): void throws { 223 public static consumeFloat(floatc: float): void throws { [all …]
|
| D | Template.swift | 74 class func consumeBool(_ v: Bool) throws { in consumeBool() 80 class func consumeChar(_ v: Character) throws { in consumeChar() 86 class func consumeShort(_ v: Int16) throws { in consumeShort() 92 class func consumeInt(_ v: Int) throws { in consumeInt() 98 class func consumeLong(_ v: Int64) throws { in consumeLong() 104 class func consumeFloat(_ v: Float) throws { in consumeFloat() 110 class func consumeDouble(_ v: Double) throws { in consumeDouble() 135 class func consume(_ v: Bool) throws { in consume() 139 class func consume(_ v: Character) throws { in consume() 143 class func consume(_ v: Int16) throws { in consume() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/10.interfaces/06.interface_method_declarations/overriding_requirements/ |
| D | same_throws_clause.sts | 17 desc: Throws in overrided method. 18 assert: The relationship between the throws clause of an interface method and the throws clauses of… 23 m(): int throws { 29 m(): int throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/15.exceptions/05.exceptions_and_errors_inside_field_initializers/ |
| D | fld_obj.params.yaml | 16 # negative, throws exception 18 function foo(p: number): Object throws { 31 # positive, throws error 48 static fld: Object|null|undefined = ((p: number): Object throws => { 77 function bar(p: (p: number) => Object throws, q: number): Object rethrows { 89 function foo(p: number): Object throws { 95 function bar(p: (p: number) => Object throws, q: number): Object rethrows { 107 function bar(p: (p: number) => Object throws, q: number): Object rethrows { 119 function bar(p: (p: number) => Object throws, q: number): Object rethrows { 123 static fld: Object|null|undefined = bar((p: number): Object throws => {
|
| D | fld_prim.params.yaml | 16 # negative, throws exception 18 function foo(p: number): number throws { 31 # positive, throws error 48 fld: number = 8.0 + ((p: number): number throws => { 77 function bar(p: (p: number) => number throws, q: number): number rethrows { 89 function foo(p: number): number throws { 95 function bar(p: (p: number) => number throws, q: number): number rethrows { 107 function bar(p: (p: number) => number throws, q: number): number rethrows { 119 function bar(p: (p: number) => number throws, q: number): number rethrows { 123 fld: number = 8.0 + bar((p: number): number throws => {
|
| D | fld_prim2.params.yaml | 16 # negative, throws exception 18 function foo(p: number): number throws { 29 # positive, throws error 43 let a: A = { fld: 8.0 + ((p: number): number throws => { 67 function bar(p: (p: number) => number throws, q: number): number rethrows { 77 function foo(p: number): number throws { 83 function bar(p: (p: number) => number throws, q: number): number rethrows { 93 function bar(p: (p: number) => number throws, q: number): number rethrows { 103 function bar(p: (p: number) => number throws, q: number): number rethrows { 107 let a: A = { fld: 8.0 + bar((p: number): number throws => {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_meth/ |
| D | call-meth-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_lmbd/ |
| D | call-lmbd-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_var/ |
| D | decl-var-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/assn_var/ |
| D | assn-var-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_obj/ |
| D | comp-clss-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_cons/ |
| D | call-cons-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/call_func/ |
| D | call-func-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/decl_field/ |
| D | decl-field-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/10.function_types_conversions/comp_arr/ |
| D | comp-arr-n1.params.yaml | 25 function foo(p: A): C throws { 40 function foo(p: I): J throws { 55 function foo(p: A[]): B[] throws { 68 type F2 = (p: A) => A throws 74 function f2(p: A): A throws { 81 function foo(p: F2): F1 throws { 95 function foo(p: T2): T1 throws { 108 function foo(p: number|null): number throws {
|