Home
last modified time | relevance | path

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

12

/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()
312 binder::ClassScope *scope_;
DclassDefinition.cpp434 auto scopeCtx = binder::LexicalScope<binder::ClassScope>::Enter(binder, scope_); in UpdateSelf()
/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.cpp595 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()); in BuildClassDefinition()
836 auto *classScope = childNode->AsClassDefinition()->Scope(); in ResolveReference() local
837 classScope->SetParent(scope_); in ResolveReference()
1167 const auto *classScope = scope->AsClassScope(); in CheckPrivateDeclaration() local
1168 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/ets/
DunionLowering.cpp62 auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(varbinder); in GetUnionAccessClass()
123 …varbinder::LexicalScope<varbinder::ClassScope>::Enter(varbinder, accessClass->Scope()->AsClassScop… in CreateNamedAccessMethod()
175 auto *classScope = accessClass->Scope()->AsClassScope(); in CreateNamedAccess() local
177 …if (auto *var = classScope->FindLocal(name, varbinder::ResolveBindingOptions::ALL_NON_STATIC); var… in CreateNamedAccess()
192 …auto fieldCtx = varbinder::LexicalScope<varbinder::LocalScope>::Enter(varbinder, classScope->Insta… in CreateNamedAccess()
DinterfacePropertyDeclarations.cpp109 auto classScope = NearestScope(field); in GenerateGetterOrSetter() local
110 …o *paramScope = ctx->Allocator()->New<varbinder::FunctionParamScope>(ctx->Allocator(), classScope); in GenerateGetterOrSetter()
DlambdaLowering.cpp350 auto *classScope = info->calleeClass->Definition()->Scope()->AsClassScope(); in CreateCalleeMethod() local
354 …info->callReceiver != nullptr ? classScope->InstanceMethodScope() : classScope->StaticMethodScope(… in CreateCalleeMethod()
807 auto *classScope = lambdaClass->Definition()->Scope(); in CorrectTheTrueThisForExtensionLambda() local
811classScope->FindLocal(compiler::Signatures::LAMBDA_OBJECT_INVOKE, varbinder::ResolveBindingOptions… in CorrectTheTrueThisForExtensionLambda()
813classScope->FindLocal(util::StringView(invokeName), varbinder::ResolveBindingOptions::METHODS)); in CorrectTheTrueThisForExtensionLambda()
DasyncMethodLowering.cpp96 …varbinder::LexicalScope<varbinder::ClassScope>::Enter(checker->VarBinder(), classDef->Scope()->AsC… in CreateAsyncImplMethod()
/arkcompiler/ets_frontend/ets2panda/parser/program/
Dprogram.cpp61 varbinder::ClassScope *Program::GlobalClassScope() in GlobalClassScope()
68 const varbinder::ClassScope *Program::GlobalClassScope() const in GlobalClassScope()
Dprogram.h307 varbinder::ClassScope *GlobalClassScope();
308 const varbinder::ClassScope *GlobalClassScope() const;
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
DscopesInitPhase.cpp149 auto *classScope = classCtx.GetScope(); in VisitClassDefinition() local
150 BindScopeNode(classScope, classDef); in VisitClassDefinition()
287 auto *classScope = annoCtx.GetScope(); in VisitAnnotationDeclaration() local
288 BindScopeNode(classScope, annoDecl); in VisitAnnotationDeclaration()
994 … varbinder::Variable *found, varbinder::ClassScope *clsScope, in MaybeAddOverload()
1161 … auto localScope = LexicalScopeCreateOrEnter<varbinder::ClassScope>(VarBinder(), interfaceDecl); in VisitTSInterfaceDeclaration()
1214 … LexicalScopeCreateOrEnter<varbinder::ClassScope>(program->VarBinder(), program->GlobalClass()); in AddGlobalToBinder()
1223 …auto classCtx = LexicalScopeCreateOrEnter<varbinder::ClassScope>(program->VarBinder(), program->Gl… in AddGlobalToBinder()
1239 … varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), Program()->GlobalClassScope()); in HandleETSModule()
1243 …auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), Program()->Glob… in HandleETSModule()
[all …]
DscopesInitPhase.h346 varbinder::ClassScope *clsScope, varbinder::LocalScope *targetScope);
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DutilityTypeHandlers.cpp631 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(VarBinder()); in CreateInterfaceProto()
764 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), scope); in CreateConstructorForPartialType()
801 const auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>(VarBinder()); in CreateClassPrototype()
939 ir::MethodDefinition *ETSChecker::CreateNonStaticClassInitializer(varbinder::ClassScope *classScope, in CreateNonStaticClassInitializer() argument
942 …nst auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), classScope); in CreateNonStaticClassInitializer()
944 …aramScope = ProgramAllocator()->New<varbinder::FunctionParamScope>(ProgramAllocator(), classScope); in CreateNonStaticClassInitializer()
971 … id->Clone(ProgramAllocator(), classScope->Node()), funcExpr, in CreateNonStaticClassInitializer()
Dhelpers.cpp2685 …SChecker::ClassPropToImplementationProp(ir::ClassProperty *classProp, varbinder::ClassScope *scope) in ClassPropToImplementationProp()
2704 auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(VarBinder(), scope); in ClassPropToImplementationProp()
2803 …erty *const property, ir::ClassProperty *const field, varbinder::ClassScope *classScope, bool isSe… in GenGetterSetterScriptFunc() argument
2807 …r->ProgramAllocator()->New<varbinder::FunctionParamScope>(checker->ProgramAllocator(), classScope); in GenGetterSetterScriptFunc()
2844 … varbinder::ClassScope *classScope, bool isSetter, in GenerateDefaultGetterSetter() argument
2849 GenGetterSetterScriptFunc(property, field, classScope, isSetter, checker); in GenerateDefaultGetterSetter()
2885 …auto classCtx = varbinder::LexicalScope<varbinder::ClassScope>::Enter(checker->VarBinder(), classS… in GenerateDefaultGetterSetter()
2888 functionScope->BindName(classScope->Node()->AsClassDefinition()->InternalName()); in GenerateDefaultGetterSetter()
/arkcompiler/ets_frontend/ets2panda/varbinder/
Dscope.h599 class ClassScope : public LocalScope {
601 explicit ClassScope(ArenaAllocator *allocator, Scope *parent) in ClassScope() function
744 class AnnotationScope : public ClassScope {
746 …explicit AnnotationScope(ArenaAllocator *allocator, Scope *parent) : ClassScope(allocator, parent)… in AnnotationScope()
DvariableFlags.h65 _(CLASS, ClassScope) \
Dscope.cpp845 Variable *ClassScope::FindLocal(const util::StringView &name, ResolveBindingOptions options) const in FindLocal()
899 void ClassScope::SetBindingProps(Decl *newDecl, BindingProps *props, bool isStatic) in SetBindingProps()
958 Variable *ClassScope::AddBinding(ArenaAllocator *allocator, [[maybe_unused]] Variable *currentVaria… in AddBinding()
DETSBinder.h193 LocalScope *ResolvePropertyReference(ir::ClassProperty *prop, ClassScope *scope);
DETSBinder.cpp366 auto scopeCtx = LexicalScope<ClassScope>::Enter(this, decl->Scope()->AsClassScope()); in ResolveInterfaceDeclaration()
494 LocalScope *ETSBinder::ResolvePropertyReference(ir::ClassProperty *prop, ClassScope *scope) in ResolvePropertyReference()
507 auto classCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()->AsClassScope()); in BuildClassDefinitionImpl()
1574 const auto scopeCtx = LexicalScope<ClassScope>::Enter(this, classDef->Scope()->AsClassScope()); in ImportGlobalProperties()
/arkcompiler/ets_frontend/ets2panda/test/unit/plugin_conversion_rule/
Dplugin_conversion_rule_part_ii.cpp452 auto *propsE2p = reinterpret_cast<varbinder::ClassScope::BindingProps *>(props); in TEST_F()
453 …((reinterpret_cast<varbinder::ClassScope *>(classInstance))->SetBindingProps(newDeclE2p, propsE2p,… in TEST_F()
/arkcompiler/ets_frontend/ets2panda/checker/
DETSchecker.h690 …roperty *ClassPropToImplementationProp(ir::ClassProperty *classProp, varbinder::ClassScope *scope);
695 … varbinder::ClassScope *scope, bool isSetter,
750 ir::MethodDefinition *CreateNonStaticClassInitializer(varbinder::ClassScope *classScope,
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DScopeAnalyzer.spec.ts525 const classScope = rootScope.children[0]; constant
527 classScope.defs.forEach((symbol) => {
/arkcompiler/ets_frontend/ets2panda/public/
DcppToCTypes.yaml1893 namespace: 'varbinder::ClassScope::'
1897 …reinterpret_cast<varbinder::ClassScope::|es2panda_arg.type.name| |es2panda_arg.type.ptr_depth|>(|a…
1908 … (reinterpret_cast<?const? varbinder::ClassScope::|es2panda_arg.type.name| *>(classInstance))->
1911 ctxAllocator->New<varbinder::ClassScope::|es2panda_arg.type.name|>(
1926 namespace: 'varbinder::ClassScope::'
1929 var_name: '*reinterpret_cast<varbinder::ClassScope::|es2panda_arg.type.name| *>(|arg_name|)'
1933 … reinterpret_cast<Context *>(context)->allocator->New<varbinder::ClassScope::BindingProps>(

12