Home
last modified time | relevance | path

Searched refs:ast (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/commonJSAliasedExport/
DcommonJSAliasedExport.js21 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/
DTypeUtils.ts51 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);
DScopeAnalyzer.ts313 analyze(ast: SourceFile, checker: TypeChecker): void;
343 function analyze(ast: SourceFile, typeChecker: TypeChecker): void {
345 analyzeScope(ast);
/arkcompiler/ets_frontend/ts2panda/tests/utils/
Dexample_asthelper.ts19 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/
Des2panda.cpp78 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 …]
DREADME.md13 - `--dump-ast`: Dump the parsed AST
/arkcompiler/ets_frontend/arkguard/src/
DArkObfuscator.ts323 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/
Dprogram.h123 void SetAst(ir::BlockStatement *ast) in SetAst() argument
125 ast_ = ast; in SetAst()
/arkcompiler/ets_frontend/es2panda/parser/transformer/
Dtransformer.h98 void PushVariablesToNearestStatements(ir::BlockStatement *ast);
Dtransformer.cpp129 void Transformer::PushVariablesToNearestStatements(ir::BlockStatement *ast) in PushVariablesToNearestStatements() argument
150 auto scopeCtx = binder::LexicalScope<binder::Scope>::Enter(Binder(), ast->Scope()); in PushVariablesToNearestStatements()
151ast->AddStatementAtPos(0, CreateVariableDeclarationWithIdentify(it.first, VariableParsingFlags::VA… in PushVariablesToNearestStatements()
/arkcompiler/ets_frontend/
DREADME_zh.md32 ├── 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>
DREADME.md107 …1 "><p id="p6355104616592"><a name="p6355104616592"></a><a name="p6355104616592"></a>--dump-ast</p>
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js84419 …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/
Dindex.js2ast, histogram, hoisting, all).",[""]).option("-o, --output <outputFile>","set output file.","").o…