Home
last modified time | relevance | path

Searched refs:token (Results 1 – 25 of 71) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DcomplexNarrowingWithAny.ts469 injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any {
470 if (((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex))) {
471 AssertType(((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex)), "boolean");
474 AssertType((token === import46.DefaultValueAccessor) && (3 === requestNodeIndex), "boolean");
476 AssertType((token === import46.DefaultValueAccessor), "boolean");
478 AssertType(token === import46.DefaultValueAccessor, "boolean");
480 AssertType(token, "any");
497 if (((token === import49.NG_VALUE_ACCESSOR) && (3 === requestNodeIndex))) {
498 AssertType(((token === import49.NG_VALUE_ACCESSOR) && (3 === requestNodeIndex)), "boolean");
501 AssertType((token === import49.NG_VALUE_ACCESSOR) && (3 === requestNodeIndex), "boolean");
[all …]
DuncaughtCompilerError1.ts21 declare let index, lineTokens, token, tokens;
24 AssertType(token, "any");
28 …if (lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type =…
29 AssertType(lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].…
30 AssertType(lineTokens[index].trim() === '=' && index > 0 && token.type === '', "boolean");
42 AssertType(token.type === '', "boolean");
43 AssertType(token.type, "any");
/arkcompiler/runtime_core/assembler/utils/
Dnumber-utils.h35 std::string_view token = p; in ValidateInteger() local
37 if (token.back() == '-' || token.back() == '+' || token.back() == 'x' || token == ".") { in ValidateInteger()
41 if (token[0] == '-' || token[0] == '+') { in ValidateInteger()
42 token.remove_prefix(1); in ValidateInteger()
45 if (token[0] == '0' && token.size() > 1 && token.find('.') == std::string::npos) { in ValidateInteger()
46 if (token[1] == 'x') { in ValidateInteger()
47 token.remove_prefix(GENERAL_SHIFT); in ValidateInteger()
49 for (auto i : token) { in ValidateInteger()
58 if (token[1] == 'b') { in ValidateInteger()
59 token.remove_prefix(GENERAL_SHIFT); in ValidateInteger()
[all …]
/arkcompiler/runtime_core/assembler/
Dcontext.cpp34token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make()
42 return token.size(); in Len()
47 if (token[0] == c) { in ValidateRegisterName()
48 std::string_view p = token; in ValidateRegisterName()
80 if (token[0] == 'a') { in ValidateParameterName()
81 std::string_view p = token; in ValidateParameterName()
95 return token; in GiveToken()
141token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
157token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++()
178token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator --()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/templates/
Dinstructions.rb94 @tokens.each do |token|
95 if IR::types.include?(token)
96 @types << token
99 resolved = TYPE_ALIASES[token]
104 @aux_types << token
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-switch-6-expected.txt1 SyntaxError: Unexpected token [test-switch-6.js:18:36]
Dnew-expression-expected.txt1 SyntaxError: Unexpected token [new-expression.js:17:8]
Dtest-switch-1-expected.txt1 SyntaxError: Unexpected token, expected '(' [test-switch-1.js:18:1]
Dtest-do-while-1-expected.txt1 SyntaxError: Unexpected token [test-do-while-1.js:17:10]
Dtest-switch-2-expected.txt1 SyntaxError: Unexpected token, expected '(' [test-switch-2.js:17:8]
Dtest-member-expression-2-expected.txt1 SyntaxError: Unexpected token [test-member-expression-2.js:17:4]
Dtest-object-expression2-expected.txt1 SyntaxError: Unexpected token, expected '(' [test-object-expression2.js:18:8]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-interface2-expected.txt1 SyntaxError: Unexpected token [test-interface2.ts:17:11]
Dtest-as-expression4-expected.txt1 SyntaxError: Unexpected token [test-as-expression4.ts:17:20]
Dtest-keyword-declare3-expected.txt1 SyntaxError: Unexpected token [test-keyword-declare3.ts:17:9]
Dtest-as-expression6-expected.txt1 SyntaxError: Unexpected token [test-as-expression6.ts:17:19]
Dtest-type-alias1-expected.txt1 SyntaxError: Unexpected token [test-type-alias1.ts:17:6]
Dtest-ts-mapped-type1-expected.txt1 SyntaxError: Unexpected token [test-ts-mapped-type1.ts:17:17]
Dtest-ts-type-predicate7-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate7.ts:17:63]
Dtest_decorator1-expected.txt1 SyntaxError: Unexpected token, expected an identifier. [test_decorator1.ts:17:14]
Dtest-ts-type-predicate5-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate5.ts:17:68]
Dtest-ts-type-predicate3-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate3.ts:17:63]
Dtest-ts-type-predicate6-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate6.ts:17:44]
Dtest-ts-type-predicate4-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate4.ts:17:50]
Dtest-ts-type-predicate8-expected.txt1 SyntaxError: Unexpected token [test-ts-type-predicate8.ts:17:54]

123