| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | GC.ets | 70 * @throws IllegalArgumentException if current GC does not support requested cause 87 * @throws IllegalArgumentException if current GC does not support requested cause 88 * @throws UnsupportedOperationException if current GC does not support requested cause 89 …* @throws IllegalStateException if try to run threshold GC collection not in place after calling p… 100 …e function startGCImpl(cause: int, callback: Object | undefined, runInPlace: boolean): long throws; 117 * @throws IllegalArgumentException if current GC does not support requested cause 118 * @throws UnsupportedOperationException if VM is running with incorrect GC trigger 120 native function scheduleGcAfterNthAllocImpl(counter: int, cause: int): void throws; 142 * @throws UnsupportedOperationException if GC doesn't support postponing 143 * @throws IllegalStateException if it called after calling postponeGCStart [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/extended_features/ |
| D | @arkts.collections.d.ets | 155 * @throws { BusinessError } 401 - Parameter error. Invalid separator. 169 * @throws { BusinessError } 401 - Parameter error. Invalid `start` or `end` parameters. 206 * @throws { BusinessError } 401 - Parameter error. 207 * @throws { BusinessError } 10200011 - The create method cannot be bound. 219 * @throws { BusinessError } 401 - Parameter error. 220 * @throws { BusinessError } 10200011 - The from method cannot be bound. 231 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked. 243 * @throws { BusinessError } 401 - Parameter error. 244 * @throws { BusinessError } 10200012 - The Array's constructor cannot be directly invoked. 256 * @throws { BusinessError } 10200011 - The pop method cannot be bound. [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | method_override_throw_1.ets | 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.ets | 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.ets | 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_deprecated/15.exceptions/01.throwing_functions/ |
| D | lambda.ets | 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 {
|
| D | constructor.ets | 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu… 23 public constructor() throws {
|
| D | function.ets | 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu… 22 function bar(): void throws {
|
| D | function_without_keyword.ets | 17 desc: Declaring throwing function without 'throws' keyword. 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/ |
| D | pin_object.ets | 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 | Hap.ets | 65 function doGC(): void throws { 77 function runIters(phase: String, count: int, time: int, bench: $state_name): void throws { 102 function main(): void throws { 180 public static consumeBool(boolc: boolean): void throws { 186 public static consumeChar(charc: char): void throws { 192 public static consumeByte(bytec: byte): void throws { 198 public static consumeShort(shortc: short): void throws { 204 public static consumeInt(intc: int): void throws { 210 public static consumeLong(longc: long): void throws { 216 public static consumeFloat(floatc: float): void throws { [all …]
|
| D | Template.ets | 53 function doGC(): void throws { 75 function runIters(phase: String, count: int, time: int, bench: $state_name): 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_deprecated/15.exceptions/05.exceptions_and_errors_inside_field_initializers/ |
| 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 => {
|
| 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_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_arr.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_tup.params.yaml | 16 # negative, throws exception 18 function foo(p: number): number throws { 31 # positive, throws error 48 fld: [number, string] = [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: [boolean, number] = [true, 8.0 + bar((p: number): number throws => {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/testing/ |
| D | arktest.ets | 24 * @throws AssertionError if condition is false 36 * @throws AssertionError unconditionally 46 * @throws AssertionFailed if condition is false 56 * @throws AssertionFailed if condition is true 67 * @throws AssertionError if equality failed 78 * @throws AssertionError if non-equality failed 90 * @throws AssertionError if the difference exceed the absolute error 104 * @throws AssertionError if non-equality failed 115 * @throws AssertionError if non-equality failed 126 * @throws AssertionError if non-equality failed [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/15.exceptions/02.non_throwing_functions/ |
| D | lambda_without_default_catch.ets | 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu… 22 type func = (x: int) => int throws; 25 let bar: func = (x: int): int throws =>
|
| D | constructor_without_keyword.ets | 17 desc: Declaring throwing constructor without 'throws' keyword. 18 … throws keyword at the end of the signature. A function marked with throws is called a throwing fu…
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | throwingLambdaFunctions.ets | 16 function funcWithThrowsParam(f: () => void throws) { 25 function funcThrows(): void throws { 29 function funcRethrows(f: () => void throws) rethrows { 34 function funcDoubleThrows(ff: (f: () => void throws) => void throws) {
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | ets_string_builder_deopt1.ets | 18 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/ 19 //! METHOD "throws" 31 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/ 32 //! METHOD "throws" 46 …deopt1.ETSGLOBAL::__noinline__caller,ets_string_builder_deopt1.ETSGLOBAL::throws,.*,STATIC,SUCCESS/ 47 //! METHOD "throws" 58 function throws(str: string, arg: int) { 74 return throws(str, arg);
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
| D | StackTraceTest.ets | 27 public static invokeUnhandledException(): void throws { 31 static nestedFunc1(): void throws { 35 static nestedFunc2(): void throws { 39 static throwing(): void throws {
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | generic_override_2.ets | 17 then<U, E = never>(onFulfilled?: (value: T) => U|PL<U> throws, 18 onRejected?: (error: NullishType) => E|PL<E> throws): PL<U|E>; 22 then<U, E = never>(onFulfilled?: (value: T) => U|PL<U> throws, 23 onRejected?: (error: NullishType) => E|PL<E> throws): PL<U|E> {
|