/arkcompiler/ets_frontend/es2panda/ir/ |
D | astNodeMapping.h | 19 #define AST_NODE_MAPPING(_) \ argument 20 _(ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression) \ 21 _(AWAIT_EXPRESSION, AwaitExpression) \ 22 _(BIGINT_LITERAL, BigIntLiteral) \ 23 _(BINARY_EXPRESSION, BinaryExpression) \ 24 _(BLOCK_STATEMENT, BlockStatement) \ 25 _(BOOLEAN_LITERAL, BooleanLiteral) \ 26 _(BREAK_STATEMENT, BreakStatement) \ 27 _(CALL_EXPRESSION, CallExpression) \ 28 _(CATCH_CLAUSE, CatchClause) \ [all …]
|
/arkcompiler/runtime_core/assembler/ |
D | define.h | 25 #define PANDA_ASSEMBLER_TYPES(_) \ argument 26 _("void", VOID) \ 27 _("u1", U1) \ 28 _("u8", U8) \ 29 _("i8", I8) \ 30 _("u16", U16) \ 31 _("i16", I16) \ 32 _("u32", U32) \ 33 _("i32", I32) \ 34 _("u64", U64) \ [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | genericsAndHigherOrderFunctions.ts | 23 let combine: <T, S>(f: (_: T) => S) => 26 AssertType(_, "T"); 28 <U>(g: (_: U) => T) => 30 AssertType(_, "U"); 35 = <T, S>(f: (_: T) => S) => 36 AssertType(<T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (x: U) => f(g(x)), "<… 38 AssertType(_, "T"); 40 <U>(g: (_: U) => T) => 41 AssertType(<U>(g: (_: U) => T) => (x: U) => f(g(x)), "<U>((U) => T) => (U) => S"); 43 AssertType(_, "U"); [all …]
|
D | emptyArrayDestructuringExpressionVisitedByTransformer.ts | 21 let a = [] = [1].map(_ => _); 23 AssertType([] = [1].map(_ => _), "number[]"); 25 AssertType([1].map(_ => _), "number[]"); 27 AssertType(_ => _, "(number) => number"); 28 AssertType(_, "number"); 29 AssertType(_, "number"); 31 let b = [1].map(_ => _); 33 AssertType([1].map(_ => _), "number[]"); 35 AssertType(_ => _, "(number) => number"); 36 AssertType(_, "number"); [all …]
|
D | genericFunctionsNotContextSensitive.ts | 23 const f = <F extends (...args: any[]) => <G>(x: G) => void>(_: F): F => _; 25 AssertType(<F extends (...args: any[]) => <G>(x: G) => void>(_: F): F => _, "<F extends (...any[]) … 28 AssertType(_, "F"); 29 AssertType(_, "F"); 31 const a = f(<K extends string>(_: K) => _ => ({})); // <K extends string>(_: K) => <G>(_: G) => { 34 AssertType(f(<K extends string>(_: K) => _ => ({})), "<K extends string>(K) => <G>(G) => {}"); 38 AssertType(<K extends string>(_: K) => _ => ({}), "<K extends string>(K) => <G>(G) => {}"); 40 AssertType(_, "K"); 42 AssertType(_ => ({}), "<G>(G) => {}"); 44 AssertType(_, "G");
|
D | contextualSignatureInstantiation2.ts | 22 let dot: <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (_: U) => S; 25 AssertType(_, "T"); 27 AssertType(_, "U"); 28 AssertType(_, "U"); 30 dot = <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x)); 31 AssertType(dot = <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x)), "<T, … 33 AssertType(<T, S>(f: (_: T) => S) => <U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x)), "<T, S>((T)… 35 AssertType(_, "T"); 36 AssertType(<U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x)), "<U>((U) => T) => (U) => S"); 38 AssertType(_, "U");
|
D | callbacksDontShareTypes.ts | 31 let _: Combinators; variable 32 AssertType(_, "Combinators"); 45 let r1a = _.map(c2, (x) => { 47 AssertType(_.map(c2, (x) => { return x.toFixed() }), "Collection<string>"); 48 AssertType(_.map, "{ <T, U>(Collection<T>, (T) => U): Collection<U>; <T>(Collection<T>, (T) => any)… 56 let r1b = _.map(c2, rf1); // this line should not cause the following 2 to have errors 58 AssertType(_.map(c2, rf1), "Collection<string>"); 59 AssertType(_.map, "{ <T, U>(Collection<T>, (T) => U): Collection<U>; <T>(Collection<T>, (T) => any)… 63 let r5a = _.map<number, string>(c2, (x) => { 65 AssertType(_.map<number, string>(c2, (x) => { return x.toFixed() }), "Collection<string>"); [all …]
|
D | underscoreMapFirst.ts | 21 declare module _ { 70 let allSeries: ISeries[][] = _.pluck(data, "series"); 72 AssertType(_.pluck(data, "series"), "any[]"); 73 AssertType(_.pluck, "<T extends {}>(_.Collection<T>, string) => any[]"); 77 AssertType(_.map(allSeries, _.first), "ISeries[]"); 78 AssertType(_.map, "<T, TResult>(_.List<T>, _.ListIterator<T, TResult>, ?any) => TResult[]"); 80 AssertType(_.first, "<T>(_.List<T>) => T"); 81 return _.map(allSeries, _.first);
|
D | tooFewArgumentsInGenericFunctionTypedArgument.ts | 33 let _: Combinators; variable 34 AssertType(_, "Combinators"); 36 let r1a = _.map(c2, (x) => { 38 AssertType(_.map(c2, (x) => { return x.toFixed() }), "Collection<number, string>"); 39 AssertType(_.map, "{ <T, U, V>(Collection<T, U>, (T, U) => V): Collection<T, V>; <T, U>(Collection<… 55 let r1b = _.map(c2, rf1); 57 AssertType(_.map(c2, rf1), "Collection<number, string>"); 58 AssertType(_.map, "{ <T, U, V>(Collection<T, U>, (T, U) => V): Collection<T, V>; <T, U>(Collection<…
|
D | taggedTemplateStringsWithCurriedFunction.ts | 23 const f = _ => (..._) => ""; 25 AssertType(_ => (..._) => "", "(any) => (...any[]) => string"); 26 AssertType(_, "any"); 27 AssertType((..._) => "", "(...any[]) => string"); 28 AssertType(_, "any[]");
|
D | objectTypeWithStringNamedPropertyOfIllegalCharacters.ts | 93 AssertType(a, "{ " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?/.,`": number; }"); 124 let r4 = a["~!@#$%^&*()_+{}|:'<>?\/.,`"]; 131 AssertType(b, "{ " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?/.,`": number; }"); 150 AssertType(b, "{ " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?/.,`": number; }"); 169 AssertType(b, "{ " ": number; "a b": string; "~!@#$%^&*()_+{}|:'<>?/.,`": number; }");
|
D | discriminantsAndNullOrUndefined.ts | 28 function never(_: never): never { 34 function useA(_: A): void { } 35 function useB(_: B): void { }
|
D | elidedEmbeddedStatementsReplacedWithSemicolon.ts | 37 for (let _ in []) variable 40 for (let _ of []) variable
|
D | modKeyword.ts | 27 let _ = module.exports = foo 28 AssertType(_, "any");
|
D | nondistributiveConditionalTypeInfer.ts | 22 type _R<T> = [T] extends [{ _R: (_: infer R) => void }] ? R : never; 27 _R: (_: R) => void;
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | typeMapping.h | 21 #define TYPE_MAPPING(_) \ argument 22 _(TypeFlag::ARRAY, ArrayType) \ 23 _(TypeFlag::ANY, AnyType) \ 24 _(TypeFlag::BIGINT_LITERAL, BigintLiteralType) \ 25 _(TypeFlag::NUMBER, NumberType) \ 26 _(TypeFlag::STRING, StringType) \ 27 _(TypeFlag::SYMBOL, SymbolType) \ 28 _(TypeFlag::BOOLEAN, BooleanType) \ 29 _(TypeFlag::VOID, VoidType) \ 30 _(TypeFlag::NULL_TYPE, NullType) \ [all …]
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | variableFlags.h | 24 #define DECLARATION_KINDS(_) \ argument 25 _(VAR, VarDecl) \ 26 _(LET, LetDecl) \ 27 _(CONST, ConstDecl) \ 28 _(CLASS, ClassDecl) \ 29 _(FUNC, FunctionDecl) \ 30 _(PARAM, ParameterDecl) \ 32 _(TYPE_ALIAS, TypeAliasDecl) \ 33 _(NAMESPACE, NamespaceDecl) \ 34 _(INTERFACE, InterfaceDecl) \ [all …]
|
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases/ |
D | test-namespace-enum-transformed-function-expected.txt | 3 slot _.#14695981039346656037#_-1 25 slot _.#14695981039346656037_1#_-1 47 slot _.#14695981039346656037_2#_-1 69 slot _.#14695981039346656037_3#_-1 91 slot _.#14695981039346656037_4#_-1 113 slot _.#14695981039346656037_5#_-1 135 slot _.#14695981039346656037_6#_-1
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportsAndImportsWithUnderscores4/ |
D | m2.ts | 21 import {_, __, ___hello, __esmodule, __proto, _hi} from "./m1"; 22 _(); 23 AssertType(_(), "void"); 24 AssertType(_, "() => void");
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | gate_meta_data_builder.h | 59 GateMetaData cached##NAME##_ { OpCode::OP, R, S, D, V }; 64 GateMetaData cachedMerge##VALUE##_ { OpCode::MERGE, GateFlags::CONTROL, VALUE, 0, 0 }; \ 65 GateMetaData cachedDependSelector##VALUE##_ { OpCode::DEPEND_SELECTOR, GateFlags::FIXED, 1, VALUE, … 70 OneParameterMetaData cachedArg##VALUE##_ { OpCode::ARG, GateFlags::HAS_ROOT, 0, 0, 0, VALUE }; 75 GateMetaData cached##NAME##1_{ OpCode::OP, R, S, D, ONE_VALUE }; \ 76 GateMetaData cached##NAME##2_{ OpCode::OP, R, S, D, TWO_VALUE }; \ 77 GateMetaData cached##NAME##3_{ OpCode::OP, R, S, D, THREE_VALUE }; \ 78 GateMetaData cached##NAME##4_{ OpCode::OP, R, S, D, FOUR_VALUE }; \ 79 GateMetaData cached##NAME##5_{ OpCode::OP, R, S, D, FIVE_VALUE }; 84 OneParameterMetaData cached##NAME##1_{ OpCode::OP, R, S, D, V, ONE_VALUE }; \ [all …]
|
D | gate_meta_data.cpp | 308 return &cache_.cached##NAME##_; \ 336 return &cache_.cached##NAME##1_; \ 338 return &cache_.cached##NAME##2_; \ 340 return &cache_.cached##NAME##3_; \ 342 return &cache_.cached##NAME##4_; \ 344 return &cache_.cached##NAME##5_; \ 360 return &cache_.cached##NAME##1_; \ 362 return &cache_.cached##NAME##2_; \ 364 return &cache_.cached##NAME##3_; \ 366 return &cache_.cached##NAME##4_; \ [all …]
|
/arkcompiler/runtime_core/assembler/templates/ |
D | ins_create_api.h.erb | 29 Ins <%=insn.emitter_name%>_; 30 <%=group.first.emitter_name%>_.opcode = Opcode::<%= insn.asm_token %>; 40 <%=group.first.emitter_name%>_.regs.reserve(<%= count_reg %>); 45 <%=group.first.emitter_name%>_.ids.push_back(label); 47 <%=group.first.emitter_name%>_.imms.emplace_back(<%= o.name %>); 50 <%=group.first.emitter_name%>_.ids.push_back(<%= o.name %>); 52 <%=group.first.emitter_name%>_.regs.push_back(<%= o.name %>); 55 return <%=insn.emitter_name%>_;
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/templates/ |
D | full_md.erb | 40 <% if i['type'] %> - *type:* <%= i['type'].gsub(/_/, '\\_') + "\n" %><% end -%> 41 <% if i['dtype'] %> - *dtype:* <%= i['dtype'].gsub(/_/, '\\_') + "\n" %><% end -%> 42 <% if i['etype'] %> - *etype:* <%= i['etype'].gsub(/_/, '\\_') + "\n" %><% end -%>
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | regScope.cpp | 55 for (const auto &[_, var] : scope->Bindings()) { in LocalRegScope() 56 (void)_; in LocalRegScope() 99 for (const auto &[_, var] : funcScope->Bindings()) { in FunctionRegScope() 100 (void)_; in FunctionRegScope()
|
/arkcompiler/ets_frontend/es2panda/compiler/templates/ |
D | isa.h.erb | 2 % return "#{mnemonic.gsub('.', '_').upcase}" 6 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMATS" 119 % map['reg'].push("#{name}_") 123 % map['lbl'].push("#{name}_") 126 % map['imm'].push("#{name}_") 132 % map['str'].push("#{name}_") 141 % _, operands = sig.match(/(\S+) (.+)/).captures 157 % name, _ = operand_parts 159 % name, _, _ = operand_parts 187 % members = ctor_arg_list.map {|arg| "#{arg}_;"}.join("\n ") [all …]
|