Home
last modified time | relevance | path

Searched refs:isDeclare (Results 1 – 8 of 8) sorted by relevance

/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.h287 void ValidateClassKey(ClassElmentDescriptor *desc, bool isDeclare);
290 ir::Expression *ParseClassKey(ClassElmentDescriptor *desc, bool isDeclare);
300 … ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
303 ArenaVector<ir::Decorator *> &&decorators, bool isDeclare);
312 bool isDeclare, bool isAbstractClass);
314 bool hasSuperClass, bool isDeclare = false);
315 …ion *CheckClassMethodOverload(ir::Statement *property, ir::MethodDefinition **ctor, bool isDeclare,
318 ir::Identifier *SetIdentNodeInClassDefinition(bool isDeclare, binder::ConstDecl **decl);
319 …efinition *ParseClassDefinition(bool isDeclaration, bool idRequired = true, bool isDeclare = false,
325 bool isDeclare, bool hasConstructorFuncBody, bool hasSuperClass);
[all …]
DstatementParser.cpp197 bool isDeclare = false; in ParseStatement() local
202 isDeclare = CheckDeclare(); in ParseStatement()
210 if (isDeclare) { in ParseStatement()
214 isDeclare = true; in ParseStatement()
220 return ParseClassStatement(flags, isDeclare, std::move(decorators), true); in ParseStatement()
229 if (isDeclare) { in ParseStatement()
232 ir::TSModuleDeclaration *decl = ParseTsModuleDeclaration(isDeclare); in ParseStatement()
252 return ParseFunctionStatement(flags, isDeclare); in ParseStatement()
255 return ParseClassStatement(flags, isDeclare, std::move(decorators)); in ParseStatement()
258 return ParseVarStatement(isDeclare); in ParseStatement()
[all …]
DparserImpl.cpp2184 void ParserImpl::ValidateClassKey(ClassElmentDescriptor *desc, bool isDeclare) in ValidateClassKey() argument
2212 …} else if (!isDeclare && propNameStr.Is("prototype") && (desc->modifiers & ir::ModifierFlags::STAT… in ValidateClassKey()
2217 ir::Expression *ParserImpl::ParseClassKey(ClassElmentDescriptor *desc, bool isDeclare) in ParseClassKey() argument
2226 ValidateClassKey(desc, isDeclare); in ParseClassKey()
2393 … ArenaVector<ir::Decorator *> &&decorators, bool isDeclare) in ParseClassMethod() argument
2403 if (isDeclare && (desc->newStatus & ParserStatus::ASYNC_FUNCTION)) { in ParseClassMethod()
2407 if (isDeclare && desc->isGenerator) { in ParseClassMethod()
2412 ir::ScriptFunction *func = ParseFunction(desc->newStatus, isDeclare, &paramDecorators); in ParseClassMethod()
2445 bool isDeclare) in ParseClassProperty() argument
2451 …roperty = ParseClassMethod(desc, properties, propName, &propEnd, std::move(decorators), isDeclare); in ParseClassProperty()
[all …]
DexpressionParser.cpp1747 bool isDeclare) in ParsePotentialTsFunctionParameter() argument
1792 …ion *ParserImpl::ParsePatternElement(ExpressionParseFlags flags, bool allowDefault, bool isDeclare) in ParsePatternElement() argument
1826 ParsePotentialTsFunctionParameter(flags, returnNode, isDeclare); in ParsePatternElement()
/arkcompiler/ets_frontend/es2panda/binder/
Dbinder.h72 T *AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args);
75 …T *AddDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... arg…
78 T *AddTsDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args);
81 …T *AddTsDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args &&... a…
279 T *Binder::AddTsDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddTsDecl() argument
282 decl->SetDeclare(isDeclare); in AddTsDecl()
293 T *Binder::AddTsDecl(const lexer::SourcePosition &pos, DeclarationFlags flag, bool isDeclare, Args … in AddTsDecl() argument
297 decl->SetDeclare(isDeclare); in AddTsDecl()
308 T *Binder::AddDecl(const lexer::SourcePosition &pos, bool isDeclare, Args &&... args) in AddDecl() argument
311 decl->SetDeclare(isDeclare); in AddDecl()
[all …]
Ddeclaration.h118 void SetDeclare(bool isDeclare) in DECLARATION_KINDS()
120 isDeclare_ = isDeclare; in DECLARATION_KINDS()
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsEnumDeclaration.h44 bool isExport, bool isDeclare, bool isConst) in TSEnumDeclaration() argument
50 isDeclare_(isDeclare), in TSEnumDeclaration()
/arkcompiler/ets_frontend/ts2panda/src/base/
DtypeSystem.ts280 …cMethods: Map<string, {typeIndex: number, isDeclare: boolean}> = new Map<string, {typeIndex: numbe…
282 …methods: Map<string, {typeIndex: number, isDeclare: boolean}> = new Map<string, {typeIndex: number…
408 if (foundSameNameFuncRet && !foundSameNameFuncRet.isDeclare) {
421 …this.staticMethods.set(funcType.getFunctionName(), {typeIndex: type!, isDeclare: member.body == un…
423 …this.methods.set(funcType.getFunctionName(), {typeIndex: type!, isDeclare: member.body == undefine…
493 …let transferredTarget: Map<string, {typeIndex: number, isDeclare: boolean}> = isStatic ? this.stat…