/arkcompiler/ets_runtime/test/typeinfer/automatedcases/commonJSAliasedExport/ |
D | commonJSAliasedExport.js | 21 const donkey = (ast) => ast; argument 23 AssertType((ast) => ast, "(any) => any"); 24 AssertType(ast, "any"); 25 AssertType(ast, "any");
|
/arkcompiler/ets_frontend/arkguard/src/utils/ |
D | TypeUtils.ts | 51 public static createChecker(ast: SourceFile): TypeChecker { 56 if (name === ast.fileName) { 57 return ast; 73 return name === ast.fileName ? ast.text : host.readFile(name); 82 if (ast.fileName.endsWith('.js')) { 86 let program: Program = createProgram([ast.fileName], option, customHost);
|
D | ScopeAnalyzer.ts | 313 analyze(ast: SourceFile, checker: TypeChecker): void; 343 function analyze(ast: SourceFile, typeChecker: TypeChecker): void { 345 analyzeScope(ast);
|
/arkcompiler/ets_frontend/ts2panda/tests/utils/ |
D | example_asthelper.ts | 19 let ast = asthelper.creatAstFromSnippet("var aaa = 10"); 20 console.log(ast.getText()); 24 let ast = asthelper.creatAstFromFile(absolutePath); 25 console.log(ast.getText());
|
/arkcompiler/ets_frontend/es2panda/ |
D | es2panda.cpp | 78 auto ast = parser_->Parse(fname, src, rname, kind); in Compile() local 79 ast.Binder()->SetProgram(&ast); in Compile() 82 std::cout << ast.Dump() << std::endl; in Compile() 85 if (ast.Extension() == ScriptExtension::TS && options.enableTypeCheck) { in Compile() 87 auto checker = std::make_unique<checker::Checker>(&localAllocator, ast.Binder()); in Compile() 91 if (ast.Extension() == ScriptExtension::TS) { in Compile() 92 transformer_->Transform(&ast); in Compile() 93 ast.Binder()->IdentifierAnalysis(binder::ResolveBindingFlags::ALL); in Compile() 95 std::cout << ast.Dump() << std::endl; in Compile() 98 transformer_->CheckTransformedAstStructure(&ast); in Compile() [all …]
|
D | README.md | 13 - `--dump-ast`: Dump the parsed AST
|
/arkcompiler/ets_frontend/arkguard/src/ |
D | ArkObfuscator.ts | 323 let ast: SourceFile; 331 ast = createSourceFile(sourceFilePath, content, ScriptTarget.ES2015, true); 333 ast = content; 336 if (ast.statements.length === 0) { 344 …let transformedResult: TransformationResult<Node> = transform(ast, this.mTransformers, this.mCompi… 345 ast = transformedResult.transformed[0] as SourceFile; 353 this.createObfsPrinter().writeFile(ast, this.mTextWriter, sourceMapGenerator);
|
/arkcompiler/ets_frontend/es2panda/parser/program/ |
D | program.h | 123 void SetAst(ir::BlockStatement *ast) in SetAst() argument 125 ast_ = ast; in SetAst()
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
D | transformer.h | 98 void PushVariablesToNearestStatements(ir::BlockStatement *ast);
|
D | transformer.cpp | 129 void Transformer::PushVariablesToNearestStatements(ir::BlockStatement *ast) in PushVariablesToNearestStatements() argument 150 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(Binder(), ast->Scope()); in PushVariablesToNearestStatements() 151 …ast->AddStatementAtPos(0, CreateVariableDeclarationWithIdentify(it.first, VariableParsingFlags::VA… in PushVariablesToNearestStatements()
|
/arkcompiler/ets_frontend/ |
D | README_zh.md | 32 ├── parser # 语法解析,ast生成 107 …1 "><p id="p6355104616592"><a name="p6355104616592"></a><a name="p6355104616592"></a>--dump-ast</p> 109 …<p id="p187287280015"><a name="p187287280015"></a><a name="p187287280015"></a>打印解析得到的ast(抽象语法树)</p>
|
D | README.md | 107 …1 "><p id="p6355104616592"><a name="p6355104616592"></a><a name="p6355104616592"></a>--dump-ast</p>
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
D | cocos_worker_test.js | 84419 …var Yit, qit, Kit, Jit, Zit, Qit, $it, tst, est, ist, sst, nst, rst, ost, ast, lst, hst, cst, ust,… 84424 …nst = hh(), rst = ph(), ost = lh(), ast = Th(_it), lst = ph(), hst = lh(), Yit(cst = (ust = (gst =… 84488 }), fst = Bl(ust.prototype, "space", [ ast, Yl, lst, hst ], {
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …ast, histogram, hoisting, all).",[""]).option("-o, --output <outputFile>","set output file.","").o…
|