Home
last modified time | relevance | path

Searched refs:catch (Results 1 – 25 of 952) sorted by relevance

12345678910>>...39

/third_party/typescript/tests/baselines/reference/
DcatchClauseWithTypeAnnotation.errors.txt5 …hClauseWithTypeAnnotation.ts(29,29): error TS2492: Cannot redeclare identifier 'x' in catch clause.
18 try { } catch (x) { } // should be OK
19 try { } catch (x: any) { } // should be OK
20 try { } catch (x: any1) { } // should be OK
21 try { } catch (x: unknown) { } // should be OK
22 try { } catch (x: unknown1) { } // should be OK
23 try { } catch (x) { x.foo; } // should be OK
24 try { } catch (x: any) { x.foo; } // should be OK
25 try { } catch (x: any1) { x.foo; } // should be OK
26 try { } catch (x: unknown) { console.log(x); } // should be OK
[all …]
DcatchClauseWithTypeAnnotation.types13 try { } catch (x) { } // should be OK
16 try { } catch (x: any) { } // should be OK
19 try { } catch (x: any1) { } // should be OK
22 try { } catch (x: unknown) { } // should be OK
25 try { } catch (x: unknown1) { } // should be OK
28 try { } catch (x) { x.foo; } // should be OK
34 try { } catch (x: any) { x.foo; } // should be OK
40 try { } catch (x: any1) { x.foo; } // should be OK
46 try { } catch (x: unknown) { console.log(x); } // should be OK
54 try { } catch (x: unknown1) { console.log(x); } // should be OK
[all …]
DcatchClauseWithTypeAnnotation.symbols13 try { } catch (x) { } // should be OK
16 try { } catch (x: any) { } // should be OK
19 try { } catch (x: any1) { } // should be OK
23 try { } catch (x: unknown) { } // should be OK
26 try { } catch (x: unknown1) { } // should be OK
30 try { } catch (x) { x.foo; } // should be OK
34 try { } catch (x: any) { x.foo; } // should be OK
38 try { } catch (x: any1) { x.foo; } // should be OK
43 try { } catch (x: unknown) { console.log(x); } // should be OK
50 try { } catch (x: unknown1) { console.log(x); } // should be OK
[all …]
DredeclareParameterInCatchBlock.errors.txt1 …clareParameterInCatchBlock.ts(4,11): error TS2492: Cannot redeclare identifier 'e' in catch clause.
2 …clareParameterInCatchBlock.ts(10,9): error TS2492: Cannot redeclare identifier 'e' in catch clause.
3 …lareParameterInCatchBlock.ts(16,15): error TS2492: Cannot redeclare identifier 'b' in catch clause.
11 } catch(e) {
14 !!! error TS2492: Cannot redeclare identifier 'e' in catch clause.
19 } catch(e) {
22 !!! error TS2492: Cannot redeclare identifier 'e' in catch clause.
27 } catch ([a, b]) {
30 !!! error TS2492: Cannot redeclare identifier 'b' in catch clause.
35 } catch ({ a: x, b: x }) {
[all …]
DtryStatements.types5 try { } catch { }
7 try { } catch {
8 try { } catch {
9 try { } catch { }
11 try { } catch { }
14 try { } catch (x) { var x: any; }
20 try { } catch { } finally { }
22 try { } catch (z) { } finally { }
DtryStatements.symbols5 try { } catch { }
7 try { } catch {
8 try { } catch {
9 try { } catch { }
11 try { } catch { }
14 try { } catch (x) { var x: any; }
20 try { } catch { } finally { }
22 try { } catch (z) { } finally { }
DtryCatchFinallyControlFlow.types21 catch (e) {
57 catch (e) {
89 catch (e) {
120 catch (e) {
151 catch (e) {
180 catch (e) {
213 catch (e) {
314 >(() => { try { x = 1; return; } catch (e) { …
315 >(() => { try { x = 1; return; } catch (e) { …
316 >() => { try { x = 1; return; } catch (e) { x…
[all …]
DtryCatchFinallyControlFlow.errors.txt17 catch (e) {
31 catch (e) {
46 catch (e) {
61 catch (e) {
76 catch (e) {
90 catch (e) {
106 catch (e) {
160 catch (e) {
185 catch (e) {
214 catch (e) {
[all …]
DinvalidTryStatements.types5 catch(x) { } // error missing try
8 finally { } // potential error; can be absorbed by the 'catch'
17 catch (x) { } // error missing try
20 …try { } finally { } // statement is here, so the 'catch' clause above doesn't absorb errors from t…
24 catch (x) { } // error missing try
27 try { } catch () { } // error missing catch binding
Dcatch.symbols1 === tests/cases/compiler/catch.ts ===
3 >f : Symbol(f, Decl(catch.ts, 0, 0))
5 try {} catch(e) { }
6 >e : Symbol(e, Decl(catch.ts, 1, 17))
8 try {} catch(e) { }
9 >e : Symbol(e, Decl(catch.ts, 2, 17))
DinvalidTryStatements.symbols5 catch(x) { } // error missing try
8 finally { } // potential error; can be absorbed by the 'catch'
17 catch (x) { } // error missing try
20 …try { } finally { } // statement is here, so the 'catch' clause above doesn't absorb errors from t…
24 catch (x) { } // error missing try
27 try { } catch () { } // error missing catch binding
DinvalidTryStatements.errors.txt12 catch(x) { } // error missing try
16 finally { } // potential error; can be absorbed by the 'catch'
27 catch (x) { } // error missing try
31 …try { } finally { } // statement is here, so the 'catch' clause above doesn't absorb errors from t…
37 catch (x) { } // error missing try
41 try { } catch () { } // error missing catch binding
DreachabilityChecks6.types74 catch (e) {
91 catch (e) {
117 catch (e) {
139 catch (e) {
164 catch (e) {
184 catch (e) {
205 catch (e) {
236 catch (e) {
DnoImplicitReturnsWithProtectedBlocks3.types17 catch(e) {
20 log("in catch");
21 >log("in catch") : void
23 >"in catch" : "in catch"
DredeclareParameterInCatchBlock.types4 } catch(e) {
14 } catch(e) {
23 } catch ([a, b]) {
37 } catch ({ a: x, b: x }) {
47 } catch(e) {
DnoImplicitReturnsWithProtectedBlocks2.types17 catch(e) {
20 log("in catch");
21 >log("in catch") : void
23 >"in catch" : "in catch"
DreachabilityChecks5.types74 catch (e) {
91 catch (e) {
117 catch (e) {
139 catch (e) {
164 catch (e) {
184 catch (e) {
205 catch (e) {
236 catch (e) {
DreachabilityChecks6.errors.txt53 catch (e) {
65 catch (e) {
82 catch (e) {
95 catch (e) {
113 catch (e) {
128 catch (e) {
139 catch (e) {
158 catch (e) {
/third_party/toybox/lib/
Dlinestack.c15 struct linestack *catch = *lls; in linestack_addstack() local
18 if (pos > catch->len) error_exit("linestack_addstack past end."); in linestack_addstack()
21 if (catch->len+throw->len >= catch->max) { in linestack_addstack()
23 catch->max = ((catch->len+throw->len)|63)+1; in linestack_addstack()
24 *lls = xmalloc(sizeof(struct linestack)+catch->max*sizeof(struct ptr_len)); in linestack_addstack()
25 memcpy(*lls, catch, sizeof(struct linestack)+pos*sizeof(struct ptr_len)); in linestack_addstack()
29 if (pos != catch->len) in linestack_addstack()
30 memmove((*lls)->idx+pos+throw->len, catch->idx+pos, in linestack_addstack()
31 (catch->len-pos)*sizeof(struct ptr_len)); in linestack_addstack()
34 if (catch != *lls) { in linestack_addstack()
[all …]
/third_party/toybox/toys/posix/
Dcp.c131 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node() local
148 && (catch = TT.destname)) in cp_node()
149 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev in cp_node()
152 error_msg("'%s' is '%s'", catch, err = dirtree_path(try, 0)); in cp_node()
160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node()
167 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) { in cp_node()
168 error_msg("unlink '%s'", catch); in cp_node()
197 catch = try->name; in cp_node()
208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) in cp_node()
209 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW))) in cp_node()
[all …]
/third_party/toybox/porting/liteos_a/toys/posix/
Dcp.c115 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node() local
133 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node()
140 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) { in cp_node()
141 error_msg("unlink '%s'", catch); in cp_node()
170 catch = try->name; in cp_node()
181 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) in cp_node()
182 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW))) in cp_node()
189 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
212 if (!symlinkat(s, cfd, catch)) { in cp_node()
227 ((!unlinkat(cfd, catch, 0) || ENOENT == errno) && in cp_node()
[all …]
/third_party/toybox/scripts/
Dconfig2help.c345 struct symbol *throw = 0, *catch; in main() local
350 for (catch = sym; catch; catch = catch->next) { in main()
351 if (catch->enabled != 1) continue; in main()
352 if (catch->help && (that = keyword("usage:", catch->help->data))) { in main()
361 catch->enabled++; in main()
368 throw = catch; in main()
377 cusage = dlist_zap(&catch->help); in main()
378 cdashlines = grab_dashlines(&catch->help, &cfrom, &clen); in main()
379 anchor = catch->help; in main()
398 if (throw->help || catch->help) dlist_add(&cfrom, strdup("")); in main()
[all …]
/third_party/toybox/toys/other/
Ddos2unix.c37 int outfd = 1, catch = 0; local
52 if (catch) {
54 catch = 0;
58 if (x == '\r') catch++;
63 if (catch) xwrite(outfd, "\r", 1);
/third_party/flutter/flutter/packages/flutter_tools/lib/src/base/
Dasync_guard.dart34 /// } catch (e) {
39 /// handled by the catch block. However, if `foo` spawns an asynchronous
41 /// the catch block, and will instead propagate to the containing [Zone]. This
42 /// behavior is non-intuitive to programmers expecting the `catch` to catch all
45 /// As such, it would be convenient if the `try {} catch {}` here could handle
60 /// } catch (e) {
66 /// 'Error' is instead caught by the `catch`.
76 } catch (e, s) {
/third_party/node/deps/npm/node_modules/sshpk/bin/
Dsshpk-sign64 } catch (e) {
94 } catch (e) {
112 } catch (e) {
141 } catch (e) {
154 } catch (e) {
165 } catch (e) {
177 } catch (e) {

12345678910>>...39