Home
last modified time | relevance | path

Searched refs:matchResult (Results 1 – 16 of 16) sorted by relevance

/third_party/typescript/tests/baselines/reference/
DregexpExecAndMatchTypeUsages(strict=false).types2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
3 >foo : (matchResult: RegExpMatchArray, execResult: RegExpExecArray) => void
4 >matchResult : RegExpMatchArray
7 matchResult[0].length;
8 >matchResult[0].length : number
9 >matchResult[0] : string
10 >matchResult : RegExpMatchArray
14 matchResult[999].length;
15 >matchResult[999].length : number
16 >matchResult[999] : string
[all …]
DregexpExecAndMatchTypeUsages(strict=true).types2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
3 >foo : (matchResult: RegExpMatchArray, execResult: RegExpExecArray) => void
4 >matchResult : RegExpMatchArray
7 matchResult[0].length;
8 >matchResult[0].length : number
9 >matchResult[0] : string
10 >matchResult : RegExpMatchArray
14 matchResult[999].length;
15 >matchResult[999].length : number
16 >matchResult[999] : string | undefined
[all …]
DregexpExecAndMatchTypeUsages(strict=true).js2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
3 matchResult[0].length;
4 matchResult[999].length;
5 matchResult.index + 0;
6 matchResult.input.length;
7 matchResult.groups["someVariable"].length;
8 matchResult.groups = undefined;
18 matchResult = execResult;
21 execResult = matchResult
30 function foo(matchResult, execResult) {
[all …]
DregexpExecAndMatchTypeUsages(strict=false).js2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
3 matchResult[0].length;
4 matchResult[999].length;
5 matchResult.index + 0;
6 matchResult.input.length;
7 matchResult.groups["someVariable"].length;
8 matchResult.groups = undefined;
18 matchResult = execResult;
21 execResult = matchResult
30 function foo(matchResult, execResult) {
[all …]
DregexpExecAndMatchTypeUsages(strict=true).symbols2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
4 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
9 matchResult[0].length;
10 >matchResult[0].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
11 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
15 matchResult[999].length;
16 >matchResult[999].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
17 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
20 matchResult.index + 0;
21 >matchResult.index : Symbol(RegExpMatchArray.index, Decl(lib.es5.d.ts, --, --))
[all …]
DregexpExecAndMatchTypeUsages(strict=false).symbols2 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
4 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
9 matchResult[0].length;
10 >matchResult[0].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
11 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
15 matchResult[999].length;
16 >matchResult[999].length : Symbol(String.length, Decl(lib.es5.d.ts, --, --))
17 >matchResult : Symbol(matchResult, Decl(regexpExecAndMatchTypeUsages.ts, 0, 20))
20 matchResult.index + 0;
21 >matchResult.index : Symbol(RegExpMatchArray.index, Decl(lib.es5.d.ts, --, --))
[all …]
DregexpExecAndMatchTypeUsages(strict=true).errors.txt2 tests/cases/compiler/regexpExecAndMatchTypeUsages.ts(4,5): error TS18048: 'matchResult.index' is po…
3 tests/cases/compiler/regexpExecAndMatchTypeUsages.ts(5,5): error TS18048: 'matchResult.input' is po…
4 tests/cases/compiler/regexpExecAndMatchTypeUsages.ts(6,5): error TS18048: 'matchResult.groups' is p…
16 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
17 matchResult[0].length;
18 matchResult[999].length;
21 matchResult.index + 0;
23 !!! error TS18048: 'matchResult.index' is possibly 'undefined'.
24 matchResult.input.length;
26 !!! error TS18048: 'matchResult.input' is possibly 'undefined'.
[all …]
DregexpExecAndMatchTypeUsages(strict=false).errors.txt8 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
9 matchResult[0].length;
10 matchResult[999].length;
11 matchResult.index + 0;
12 matchResult.input.length;
13 matchResult.groups["someVariable"].length;
14 matchResult.groups = undefined;
24 matchResult = execResult;
27 execResult = matchResult
/third_party/typescript/tests/cases/compiler/
DregexpExecAndMatchTypeUsages.ts6 export function foo(matchResult: RegExpMatchArray, execResult: RegExpExecArray) {
7 matchResult[0].length;
8 matchResult[999].length;
9 matchResult.index + 0;
10 matchResult.input.length;
11 matchResult.groups["someVariable"].length;
12 matchResult.groups = undefined;
22 matchResult = execResult;
25 execResult = matchResult
/third_party/ltp/testcases/network/nfsv4/locks/
Dlocktests.c126 int matchResult(int r, int n) in matchResult() function
139 TOTAL_RESULT_OK[n] += matchResult(r, n); in counter()
/third_party/typescript/src/compiler/
DutilitiesPublic.ts337 const matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale); constant
339 if (!matchResult) {
346 const language = matchResult[1];
347 const territory = matchResult[3];
Dparser.ts10421 const matchResult = matcher.exec(text);
10422 if (!matchResult && !arg.optional) {
10425 else if (matchResult) {
10426 const value = matchResult[2] || matchResult[3];
10428 … const startPos = range.pos + matchResult.index + matchResult[1].length + 1;
/third_party/parse5/packages/parse5/lib/tokenizer/
Dindex.ts3023 const matchResult = this._matchNamedCharacterReference(cp); constant
3029 } else if (matchResult) {
3030 for (let i = 0; i < matchResult.length; i++) {
3031 this._flushCodePointConsumedAsCharacterReference(matchResult[i]);
/third_party/weex-loader/deps/weex-styler/lib/
Dvalidator.js1513 let matchResult = PERCENTAGE_LENGTH_VALIDATOR(widthMatch[0])
1516 if (util.isValidValue(matchResult.value)) {
1517 tempValues.push(matchResult.value)
1519 let check = checkReason(matchResult, n.toString(), widthMatch[0], length)
/third_party/typescript/lib/
Dtsc.js9611 var matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale);
9612 if (!matchResult) {
9618 var language = matchResult[1];
9619 var territory = matchResult[3];
32979 var matchResult = matcher.exec(text);
32980 if (!matchResult && !arg.optional) {
32983 else if (matchResult) {
32984 var value = matchResult[2] || matchResult[3];
32986 … var startPos = range.pos + matchResult.index + matchResult[1].length + 1;
DtypingsInstaller.js12808 var matchResult = /^([a-z]+)([_\-]([a-z]+))?$/.exec(lowerCaseLocale);
12809 if (!matchResult) {
12815 var language = matchResult[1];
12816 var territory = matchResult[3];
40589 var matchResult = matcher.exec(text);
40590 if (!matchResult && !arg.optional) {
40593 else if (matchResult) {
40594 var value = matchResult[2] || matchResult[3];
40596 … var startPos = range.pos + matchResult.index + matchResult[1].length + 1;