Searched refs:isNumber (Results 1 – 9 of 9) sorted by relevance
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | arrayFind.ts | 22 function isNumber(x: any): x is number { 40 const foundNumber: number | undefined = arrayOfStringsNumbersAndBooleans.find(isNumber); 42 AssertType(arrayOfStringsNumbersAndBooleans.find(isNumber), "number"); 44 AssertType(isNumber, "(any) => x is number"); 51 … readonlyFoundNumber: number | undefined = readonlyArrayOfStringsNumbersAndBooleans.find(isNumber); 53 AssertType(readonlyArrayOfStringsNumbersAndBooleans.find(isNumber), "number"); 55 AssertType(isNumber, "(any) => x is number");
|
D | typePredicatesInUnion2.ts | 22 declare function isNumber(x: any): x is number; 23 declare function f(p: typeof isString | typeof isNumber): void; 29 f(isNumber); 30 AssertType(f(isNumber), "void"); 32 AssertType(isNumber, "(any) => x is number");
|
D | controlFlowCommaExpressionFunctionCall.ts | 31 function isNumber(obj: any): obj is number { 37 if (isNumber((otherValue(), value))) {
|
D | narrowCommaOperatorNestedWithinLHS.ts | 32 function isNumber(obj: any): obj is number { function 52 if (isNumber((otherValue(), value).inner)) {
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | json_parser.h | 132 bool isNumber = ReadNumberRange(isFast); in ParseNumber() local 133 if (!isNumber) { in ParseNumber()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | stub_builder.cpp | 4272 Label isNumber(env); in FastToBoolean() local 4291 Branch(TaggedIsNumber(value), &isNumber, ¬Number); in FastToBoolean() 4314 Bind(&isNumber); in FastToBoolean() 6121 Label isNumber(env); in ToNumber() local 6125 Branch(TaggedIsNumber(tagged), &isNumber, ¬Number); in ToNumber() 6126 Bind(&isNumber); in ToNumber()
|
/arkcompiler/ets_frontend/testTs/ |
D | test-case.patch | 3411 + const isNumber = typeof x === "number"; 3412 + if (isString || isNumber) { 3422 + const isNumber = typeof x === "number"; 3423 + const isStringOrNumber = isString || isNumber;
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …isNumber(t)?t:t[0])}),(function(t){return e.isNumber(t)?e.emptyArray:t[1]})),hasReusableDiagnostic… property
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 10279 isNumber: ft, property 10334 isNumber: ft, property
|