/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | lreference.cpp | 34 LReference::LReference(const ir::AstNode *node, PandaGen *pg, bool isDeclaration, ReferenceKind ref… in LReference() argument 36 : node_(node), pg_(pg), refKind_(refKind), res_(res), isDeclaration_(isDeclaration) in LReference() 99 LReference LReference::CreateLRef(PandaGen *pg, const ir::AstNode *node, bool isDeclaration) in CreateLRef() argument 106 return {node, pg, isDeclaration, ReferenceKind::VAR_OR_GLOBAL, res}; in CreateLRef() 122 return {node, pg, isDeclaration, ReferenceKind::DESTRUCTURING, {}}; in CreateLRef() 128 return LReference::CreateLRef(pg, node->AsRestElement()->Argument(), isDeclaration); in CreateLRef() 135 return {node, pg, isDeclaration, ReferenceKind::VAR_OR_GLOBAL, res}; in CreateLRef() 138 return LReference::CreateLRef(pg, node->AsTSAsExpression()->Expr(), isDeclaration); in CreateLRef() 141 … return LReference::CreateLRef(pg, node->AsTSTypeAssertion()->GetExpression(), isDeclaration); in CreateLRef()
|
D | lreference.h | 43 LReference(const ir::AstNode *node, PandaGen *pg, bool isDeclaration, ReferenceKind refKind, 54 static LReference CreateLRef(PandaGen *pg, const ir::AstNode *node, bool isDeclaration);
|
D | destructuring.cpp | 33 const DestructuringIterator &destIterator, bool isDeclaration) in GenRestElement() argument 44 LReference lref = LReference::CreateLRef(pg, restElement, isDeclaration); in GenRestElement()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | compilerUtils.ts | 63 let isDeclaration = ts.isArrayBindingPattern(arr) ? true : false; 102 if ((!isDeclaration && ts.isSpreadElement(element)) || 103 (isDeclaration && (<ts.BindingElement>element).dotDotDotToken)) { 104 …emitRestElement(isDeclaration ? (<ts.BindingElement>element).name : (<ts.SpreadElement>element).ex… 105 iterator, nextResult, pandaGen, compiler, isDeclaration); 111 … let target: ts.Node = isDeclaration ? (<ts.BindingElement>element).name : <ts.Expression>element; 114 if (!isDeclaration && ts.isBinaryExpression(element)) { 122 } else if (isDeclaration && (<ts.BindingElement>element).initializer) { 127 let lRef = LReference.generateLReference(compiler, target, isDeclaration ? true : false); 200 pandaGen: PandaGen, compiler: Compiler, isDeclaration: boolean): void { [all …]
|
D | lexenv.ts | 114 isDeclaration: boolean; 115 …constructor(scope: Scope, level: number, variable: Variable, isDeclaration: boolean, node: ts.Node… 117 this.isDeclaration = isDeclaration; 134 if (!this.isDeclaration) { 166 if (!this.isDeclaration) {
|
D | compiler.ts | 1420 isDeclaration: boolean): void { 1422 if (isDeclaration && variable.v.isLetOrConst()) { 1439 … this.pandaGen.storeAccToLexEnv(node, variable.scope!, variable.level, variable.v, isDeclaration); 1448 if (!isDeclaration && variable.v.isConst()) { 1457 if (isDeclaration) {
|
D | pandagen.ts | 594 …v(node: ts.Node | NodeKind, scope: Scope, level: number, v: Variable, isDeclaration: boolean): voi… 595 let expander = new VariableAcessStore(scope, level, v, isDeclaration, node);
|
/arkcompiler/ets_frontend/ts2panda/src/base/ |
D | lreference.ts | 34 private isDeclaration: boolean; property in LReference 44 isDeclaration: boolean, 49 this.isDeclaration = isDeclaration; 106 this.compiler.storeTarget(this.node, this.variable!, this.isDeclaration); 129 … static generateLReference(compiler: Compiler, node: ts.Node, isDeclaration: boolean): LReference { 152 … return new LReference(realNode, compiler, isDeclaration, ReferenceKind.LOCAL_OR_GLOBAL, variable); 174 … return new LReference(realNode, compiler, isDeclaration, ReferenceKind.DESTRUCTURING, undefined);
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | spreadElement.cpp | 45 bool SpreadElement::ConvertibleToRest(bool isDeclaration, bool allowPattern) in ConvertibleToRest() argument 65 convResult = !isDeclaration; in ConvertibleToRest()
|
D | spreadElement.h | 53 bool ConvertibleToRest(bool isDeclaration, bool allowPattern = true);
|
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | tryStatement.ts | 281 let isDeclaration: boolean = false; 304 let lref = LReference.generateLReference(this.compiler, stmt.initializer, isDeclaration);
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | pandagen.cpp | 336 …daGen::StoreVar(const ir::AstNode *node, const binder::ScopeFindResult &result, bool isDeclaration) in StoreVar() argument 351 if (!isDeclaration && var->Declaration()->IsConstDecl()) { in StoreVar() 356 if (!isDeclaration && in StoreVar() 373 if (!isDeclaration) { in StoreVar() 384 StoreAccToLexEnv(node, result, isDeclaration); in StoreVar() 632 …toreAccToLexEnv(const ir::AstNode *node, const binder::ScopeFindResult &result, bool isDeclaration) in StoreAccToLexEnv() argument 634 VirtualStoreVar::Expand(this, node, result, isDeclaration); in StoreAccToLexEnv()
|
D | pandagen.h | 285 … void StoreVar(const ir::AstNode *node, const binder::ScopeFindResult &result, bool isDeclaration); 312 …oreAccToLexEnv(const ir::AstNode *node, const binder::ScopeFindResult &result, bool isDeclaration);
|
/arkcompiler/ets_frontend/es2panda/parser/ |
D | parserImpl.h | 319 …ir::ClassDefinition *ParseClassDefinition(bool isDeclaration, bool idRequired = true, bool isDecla…
|
D | parserImpl.cpp | 2813 ir::ClassDefinition *ParserImpl::ParseClassDefinition(bool isDeclaration, bool idRequired, bool isD… in ParseClassDefinition() argument 2828 } else if (isDeclaration && idRequired) { in ParseClassDefinition()
|
/arkcompiler/ets_frontend/legacy_bin/api8/src/ |
D | index.js | 2 …isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclar…
|