/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | argumentsAsPropertyName2.ts | 43 ({ arguments: 0 }); 44 AssertType(({ arguments: 0 }), "{ arguments: number; }"); 45 AssertType({ arguments: 0 }, "{ arguments: number; }"); 46 AssertType(arguments, "number"); 49 ({ arguments }); 50 AssertType(({ arguments }), "{ arguments: IArguments; }"); 51 AssertType({ arguments }, "{ arguments: IArguments; }"); 52 AssertType(arguments, "IArguments"); 54 ({ arguments: arguments }); 55 AssertType(({ arguments: arguments }), "{ arguments: IArguments; }"); [all …]
|
D | functionExpressionWithResolutionOfTypeNamedArguments01.ts | 21 interface arguments { 26 AssertType(function f() { <arguments>arguments;}, "() => void"); 29 <arguments>arguments; 30 AssertType(<arguments>arguments, "arguments"); 31 AssertType(arguments, "IArguments");
|
D | emitArrowFunctionWhenUsingArguments18_ES6.ts | 22 let { arguments: args } = { arguments }; 23 AssertType(arguments, "any"); 25 AssertType({ arguments }, "{ arguments: IArguments; }"); 26 AssertType(arguments, "IArguments"); 32 AssertType(() => arguments, "() => IArguments"); 33 AssertType(arguments, "IArguments"); 34 return () => arguments;
|
D | functionDeclarationWithResolutionOfTypeNamedArguments01.ts | 21 interface arguments { 25 <arguments>arguments; 26 AssertType(<arguments>arguments, "arguments"); 27 AssertType(arguments, "IArguments");
|
D | argumentsReferenceInConstructor5_Js.ts | 23 AssertType({ arguments: {}}, "{ arguments: {}; }"); 25 arguments: { 26 AssertType(arguments, "{}"); 51 this.bar = bar.arguments; 52 AssertType(this.bar = bar.arguments, "{}"); 55 AssertType(bar.arguments, "{}");
|
D | argumentsReferenceInMethod5_Js.ts | 23 AssertType({ arguments: {}}, "{ arguments: {}; }"); 25 arguments: { 26 AssertType(arguments, "{}"); 49 this.bar = bar.arguments; 50 AssertType(this.bar = bar.arguments, "{}"); 53 AssertType(bar.arguments, "{}");
|
D | capturedLetConstInLoop2.ts | 27 let a = arguments.length; 29 AssertType(arguments.length, "number"); 53 let a = arguments.length; 55 AssertType(arguments.length, "number"); 84 let a = arguments.length; 86 AssertType(arguments.length, "number"); 111 let a = arguments.length; 113 AssertType(arguments.length, "number"); 137 let a = arguments.length; 139 AssertType(arguments.length, "number"); [all …]
|
D | capturedLetConstInLoop2_ES6.ts | 27 let a = arguments.length; 29 AssertType(arguments.length, "number"); 53 let a = arguments.length; 55 AssertType(arguments.length, "number"); 84 let a = arguments.length; 86 AssertType(arguments.length, "number"); 111 let a = arguments.length; 113 AssertType(arguments.length, "number"); 137 let a = arguments.length; 139 AssertType(arguments.length, "number"); [all …]
|
D | asyncArrowFunctionCapturesArguments_es6.ts | 27 let fn = async () => await other.apply(this, arguments); 29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>"); 30 AssertType(await other.apply(this, arguments), "any"); 31 AssertType(other.apply(this, arguments), "any"); 34 AssertType(arguments, "IArguments");
|
D | asyncArrowFunctionCapturesArguments_es2017.ts | 27 let fn = async () => await other.apply(this, arguments); 29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>"); 30 AssertType(await other.apply(this, arguments), "any"); 31 AssertType(other.apply(this, arguments), "any"); 34 AssertType(arguments, "IArguments");
|
D | argumentsReferenceInMethod3_Js.ts | 22 get arguments() { 47 this.y = super.arguments.bar; 48 AssertType(this.y = super.arguments.bar, "{}"); 51 AssertType(super.arguments.bar, "{}"); 52 AssertType(super.arguments, "{ bar: {}; }");
|
D | argumentsReferenceInConstructor3_Js.ts | 22 get arguments() { 53 this.bar = super.arguments.foo; 54 AssertType(this.bar = super.arguments.foo, "error"); 57 AssertType(super.arguments.foo, "error"); 58 AssertType(super.arguments, "{ bar: {}; }");
|
D | emitArrowFunctionWhenUsingArguments09_ES6.ts | 22 let a = () => () => arguments; 24 AssertType(() => () => arguments, "() => () => IArguments"); 25 AssertType(() => arguments, "() => IArguments"); 26 AssertType(arguments, "IArguments");
|
D | emitArrowFunctionWhenUsingArguments10_ES6.ts | 26 let a = () => () => arguments; 28 AssertType(() => () => arguments, "() => () => IArguments"); 29 AssertType(() => arguments, "() => IArguments"); 30 AssertType(arguments, "IArguments");
|
D | capturedLetConstInLoop9_ES6.ts | 178 let [{x1, y:z1}] = [{x1:1, y:arguments.length}]; 182 AssertType([{x1:1, y:arguments.length}], "[{ x1: number; y: number; }]"); 183 AssertType({x1:1, y:arguments.length}, "{ x1: number; y: number; }"); 187 AssertType(arguments.length, "number"); 326 let x = arguments.length; 328 AssertType(arguments.length, "number"); 334 let z = arguments.length; 336 AssertType(arguments.length, "number"); 339 AssertType((function() { return y + z + arguments.length; }), "() => any"); 340 AssertType(function() { return y + z + arguments.length; }, "() => any"); [all …]
|
D | capturedLetConstInLoop9.ts | 178 let [{x1, y:z1}] = [{x1:1, y:arguments.length}]; 182 AssertType([{x1:1, y:arguments.length}], "[{ x1: number; y: number; }]"); 183 AssertType({x1:1, y:arguments.length}, "{ x1: number; y: number; }"); 187 AssertType(arguments.length, "number"); 327 let x = arguments.length; 329 AssertType(arguments.length, "number"); 335 let z = arguments.length; 337 AssertType(arguments.length, "number"); 340 AssertType((function() { return y + z + arguments.length; }), "() => any"); 341 AssertType(function() { return y + z + arguments.length; }, "() => any"); [all …]
|
D | superNoModifiersCrash.ts | 23 super.initialize(...arguments) 24 AssertType(super.initialize(...arguments), "error"); 27 AssertType(...arguments, "any"); 28 AssertType(arguments, "IArguments");
|
D | argumentsAsPropertyName.ts | 23 arguments: Array<string> 38 use(myType.arguments[i]); 39 AssertType(use(myType.arguments[i]), "any"); 41 AssertType(myType.arguments[i], "string"); 42 AssertType(myType.arguments, "string[]");
|
D | argumentsReferenceInConstructor6_Js.ts | 26 this.foo = arguments; 27 AssertType(this.foo = arguments, "IArguments"); 30 AssertType(arguments, "IArguments");
|
/arkcompiler/ets_runtime/test/aottest/getunmappedargs/ |
D | getunmappedargs.ts | 18 print(arguments[0]); 23 print(arguments[0]); 24 print(arguments[1]); 25 print(arguments[2]); 30 print(arguments[0]); 31 print(arguments[1]);
|
/arkcompiler/runtime_core/libpandabase/ |
D | README.md | 7 pandargs is header-only utility tool that helps to parse command line arguments. It supports severa… 25 …d of `PandArg`, `PandArgCompound` can be used, which serves for creation of the compound arguments. 35 // argument name | argument description | sub-arguments 43 - PandArgCompound accepts three parameters: argument name, description and list of sub-arguments 52 - List of sub-arguments has type `std::initializer_list<PandArgBase *>`, and it accepts any non-com… 53 Sub-arguments should not be added to the parser via `PandArgParser::Add`. 77 - regular arguments 78 - tail arguments 79 - remainder arguments 81 Regular arguments are typical non-positional arguments like ```--arg=1``` [all …]
|
/arkcompiler/ets_frontend/es2panda/test/compiler/interpreter/lexicalEnv/ |
D | safe_hole4.js | 42 (function (v4 = () => arguments) { 46 arguments: {} property 48 arguments: {} property 52 arguments: v18 property 65 arguments: {} property
|
/arkcompiler/ets_frontend/ts2panda/src/expression/ |
D | newExpression.ts | 30 if (containSpreadElement(expr.arguments)) { 32 … createArrayFromElements(expr, compiler, <ts.NodeArray<ts.Expression>>expr.arguments, argRegs); 42 if (expr.arguments) { 43 numArgs += expr.arguments.length; 50 if (expr.arguments) { 52 expr.arguments.forEach((argExpr: ts.Expression) => {
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-new-expression-expected.txt | 22 "arguments": [], 63 "arguments": [ 166 "arguments": [], 178 "arguments": [], 190 "arguments": [], 248 "arguments": [ 275 "arguments": [], 320 "arguments": [ 347 "arguments": [], 359 "arguments": [], [all …]
|
/arkcompiler/ets_runtime/test/moduletest/getunmappedargs/ |
D | getunmappedargs.js | 23 print(arguments[0]) 24 print(arguments[1]) 25 print(arguments[2])
|