Home
last modified time | relevance | path

Searched full:classscope (Results 1 – 25 of 27) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/parser/program/
Dprogram.cpp38 varbinder::ClassScope *Program::GlobalClassScope() in GlobalClassScope()
43 const varbinder::ClassScope *Program::GlobalClassScope() const in GlobalClassScope()
Dprogram.h257 varbinder::ClassScope *GlobalClassScope();
258 const varbinder::ClassScope *GlobalClassScope() const;
/arkcompiler/ets_frontend/es2panda/ir/base/
DclassDefinition.h63 …explicit ClassDefinition(binder::ClassScope *scope, Identifier *ident, TSTypeParameterDeclaration … in ClassDefinition()
88 binder::ClassScope *Scope() const in Scope()
292 binder::ClassScope *scope_;
DclassDefinition.cpp429 auto scopeCtx = binder::LexicalScope<binder::ClassScope>::Enter(binder, scope_); in UpdateSelf()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DunionLowering.cpp56 auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(varbinder); in GetUnionFieldClass()
78 auto *classScope = dummyClass->Scope()->AsClassScope(); in CreateUnionFieldClassProperty() local
81 …auto fieldCtx = varbinder::LexicalScope<varbinder::LocalScope>::Enter(varbinder, classScope->Insta… in CreateUnionFieldClassProperty()
83 …if (auto *var = classScope->FindLocal(propName, varbinder::ResolveBindingOptions::VARIABLES); var … in CreateUnionFieldClassProperty()
DinterfacePropertyDeclarations.cpp71 auto classScope = NearestScope(field); in GenerateGetterOrSetter() local
72 …Scope = checker->Allocator()->New<varbinder::FunctionParamScope>(checker->Allocator(), classScope); in GenerateGetterOrSetter()
DlocalClassLowering.cpp29 varbinder::ClassScope *scope, size_t &idx, in CreateCapturedField()
91 …auto *property = CreateCapturedField(checker, var, reinterpret_cast<varbinder::ClassScope *>(class… in CreateClassPropertiesForCapturedVariables()
DlambdaLowering.cpp339 auto *classScope = info->calleeClass->Definition()->Scope()->AsClassScope(); in CreateCalleeMethod() local
343 …info->callReceiver != nullptr ? classScope->InstanceMethodScope() : classScope->StaticMethodScope(… in CreateCalleeMethod()
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.cpp173 bool ClassScope::IsVariableScope() const in IsVariableScope()
179 Result ClassScope::GetPrivateProperty(const util::StringView &name, bool isSetter) const in GetPrivateProperty()
215 void ClassScope::AddPrivateName(std::vector<const ir::Statement *> privateProperties, uint32_t priv… in AddPrivateName()
258 util::StringView ClassScope::GetSelfScopeName() in GetSelfScopeName()
280 util::StringView ClassScope::GetScopeTag() in GetScopeTag()
292 const auto *classScope = iter->AsClassScope(); in FindPrivateName() local
293 if (name.Is("#method") || classScope->HasPrivateName(name)) { in FindPrivateName()
294 return {lexLevel, classScope->GetPrivateProperty(name, isSetter)}; in FindPrivateName()
DvariableFlags.h57 _(CLASS, ClassScope) \
Dbinder.cpp594 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()); in BuildClassDefinition()
834 auto *classScope = childNode->AsClassDefinition()->Scope(); in ResolveReference() local
835 classScope->SetParent(scope_); in ResolveReference()
1143 const auto *classScope = scope->AsClassScope(); in CheckPrivateDeclaration() local
1144 if (classScope->HasPrivateName(name)) { in CheckPrivateDeclaration()
Dscope.h850 class ClassScope : public VariableScope {
852 explicit ClassScope(ArenaAllocator *allocator, Scope *parent) in ClassScope() function
861 ~ClassScope() override = default;
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DscopesInitPhase.cpp142 auto *classScope = classCtx.GetScope(); in VisitClassDefinition() local
143 BindScopeNode(classScope, classDef); in VisitClassDefinition()
278 auto *classScope = annoCtx.GetScope(); in VisitAnnotationDeclaration() local
279 BindScopeNode(classScope, annoDecl); in VisitAnnotationDeclaration()
922 … varbinder::Variable *found, varbinder::ClassScope *clsScope, in MaybeAddOverload()
1036 …auto classCtx = LexicalScopeCreateOrEnter<varbinder::ClassScope>(VarBinder(), newClassExpr->ClassD… in VisitETSNewClassInstanceExpression()
1066 … auto localScope = LexicalScopeCreateOrEnter<varbinder::ClassScope>(VarBinder(), interfaceDecl); in VisitTSInterfaceDeclaration()
1106 …auto classCtx = LexicalScopeCreateOrEnter<varbinder::ClassScope>(program->VarBinder(), program->Gl… in AddGlobalToBinder()
1122 … varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), Program()->GlobalClassScope()); in HandleETSScript()
1126 …auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), Program()->Glob… in HandleETSScript()
[all …]
DscopesInitPhase.h341 varbinder::ClassScope *clsScope, varbinder::LocalScope *targetScope);
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dscope.h146 ClassScope *EnclosingClassScope();
147 const ClassScope *EnclosingClassScope() const;
627 class ClassScope : public LocalScopeWithTypeAlias {
629 explicit ClassScope(ArenaAllocator *allocator, Scope *parent) in ClassScope() function
760 class AnnotationScope : public ClassScope {
762 …explicit AnnotationScope(ArenaAllocator *allocator, Scope *parent) : ClassScope(allocator, parent)… in AnnotationScope()
Dscope.cpp89 ClassScope *Scope::EnclosingClassScope() in EnclosingClassScope()
104 const ClassScope *Scope::EnclosingClassScope() const in EnclosingClassScope()
840 Variable *ClassScope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const in FindLocal()
894 void ClassScope::SetBindingProps(Decl *newDecl, BindingProps *props, bool isStatic) in SetBindingProps()
942 Variable *ClassScope::AddBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVaria… in AddBinding()
DvariableFlags.h65 _(CLASS, ClassScope) \
DETSBinder.cpp306 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, decl->Scope()->AsClassScope()); in ResolveInterfaceDeclaration()
423 LocalScope *ETSBinder::ResolvePropertyReference(ir::ClassProperty *prop, ClassScope *scope) in ResolvePropertyReference()
436 auto classCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()->AsClassScope()); in BuildClassDefinitionImpl()
1281 const auto scopeCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()->AsClassScope()); in ImportGlobalProperties()
DETSBinder.h165 LocalScope *ResolvePropertyReference(ir::ClassProperty *prop, ClassScope *scope);
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DutilityTypeHandlers.cpp622 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(VarBinder()); in CreateInterfaceProto()
676 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), scope); in CreateConstructorForPartialType()
710 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(VarBinder()); in CreateClassPrototype()
841 ir::MethodDefinition *ETSChecker::CreateNonStaticClassInitializer(varbinder::ClassScope *classScope, in CreateNonStaticClassInitializer() argument
844 …nst auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), classScope); in CreateNonStaticClassInitializer()
846 auto *paramScope = Allocator()->New<varbinder::FunctionParamScope>(Allocator(), classScope); in CreateNonStaticClassInitializer()
868 … id->Clone(Allocator(), classScope->Node()), funcExpr, in CreateNonStaticClassInitializer()
Dhelpers.cpp2264 …SChecker::ClassPropToImplementationProp(ir::ClassProperty *classProp, varbinder::ClassScope *scope) in ClassPropToImplementationProp()
2343 … varbinder::ClassScope *classScope, bool isSetter, in GenerateDefaultGetterSetter() argument
2346 …Scope = checker->Allocator()->New<varbinder::FunctionParamScope>(checker->Allocator(), classScope); in GenerateDefaultGetterSetter()
2400 …auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(checker->VarBinder(), classS… in GenerateDefaultGetterSetter()
2403 functionScope->BindName(classScope->Node()->AsClassDefinition()->InternalName()); in GenerateDefaultGetterSetter()
Dobject.cpp428 …eclaredFieldsOfObject(ETSChecker *checker, const ETSObjectType *type, varbinder::ClassScope *scope) in ResolveDeclaredFieldsOfObject()
447 …claredMethodsOfObject(ETSChecker *checker, const ETSObjectType *type, varbinder::ClassScope *scope) in ResolveDeclaredMethodsOfObject()
494 …DeclaredDeclsOfObject(ETSChecker *checker, const ETSObjectType *type, varbinder::ClassScope *scope) in ResolveDeclaredDeclsOfObject()
/arkcompiler/ets_frontend/ets2panda/checker/
DETSchecker.h633 …roperty *ClassPropToImplementationProp(ir::ClassProperty *classProp, varbinder::ClassScope *scope);
639 … varbinder::ClassScope *scope, bool isSetter,
697 ir::MethodDefinition *CreateNonStaticClassInitializer(varbinder::ClassScope *classScope,
/arkcompiler/ets_frontend/ets2panda/public/
DcppToCTypes.yaml1532 namespace: 'varbinder::ClassScope::'
1536 …reinterpret_cast<varbinder::ClassScope::|es2panda_arg.type.name| |es2panda_arg.type.ptr_depth|>(|a…
1543 (reinterpret_cast<?const? varbinder::ClassScope::|es2panda_arg.type.name| *>(ast))->
1546 ctxAllocator->New<varbinder::ClassScope::|es2panda_arg.type.name|>(
1561 namespace: 'varbinder::ClassScope::'
1564 var_name: '*reinterpret_cast<varbinder::ClassScope::|es2panda_arg.type.name| *>(|arg_name|)'
1568 … reinterpret_cast<Context *>(context)->allocator->New<varbinder::ClassScope::BindingProps>(
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DScopeAnalyzer.spec.ts525 const classScope = rootScope.children[0]; constant
527 classScope.defs.forEach((symbol) => {

12