Home
last modified time | relevance | path

Searched refs:classNode (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_frontend/arkguard/src/utils/
DOhsUtil.ts176 export function isViewPUBasedClass(classNode: ClassDeclaration): boolean {
177 if (!classNode) {
181 if (!isClassDeclaration(classNode)) {
185 const heritageClause = classNode.heritageClauses;
262 export function getClassProperties(classNode: ClassDeclaration | ClassExpression | StructDeclaratio…
263 if (!classNode || !classNode.members) {
267 classNode.members.forEach((member) => {
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DRenamePropertiesTransformer.ts249 …function getViewPUClassProperties(classNode: ClassDeclaration | ClassExpression | StructDeclaratio…
250 if (!classNode || !classNode.members) {
254 classNode.members.forEach((member) => {
/arkcompiler/ets_frontend/ts2panda/src/statement/
DclassStatement.ts166 export function AddCtor2Class(recorder: Recorder, classNode: ts.ClassLikeDeclaration, scope: Scope)…
168 if (jshelpers.getClassExtendsHeritageElement(classNode)) {
175 ctorNode = jshelpers.setParent(ctorNode, classNode)!;
176 ctorNode = ts.setTextRange(ctorNode, classNode);
180 body = ts.setTextRange(body, classNode)!;
183 ctorNode = jshelpers.setParent(ctorNode, classNode)!;
184 ctorNode = ts.setTextRange(ctorNode, classNode);
186 let parentScope = <LocalScope>recorder.getScopeOfNode(classNode);
199 recorder.setCtorOfClass(classNode, ctorNode);
498 export function getClassNameForConstructor(classNode: ts.ClassLikeDeclaration): string {
[all …]
DreturnStatement.ts137 let classNode = <ts.ClassLikeDeclaration>funcNode.parent;
138 if (classNode.heritageClauses) {
/arkcompiler/ets_frontend/ts2panda/src/
DaddVariable2Scope.ts164 let classNode = decl.node;
165 if (ts.isClassDeclaration(classNode)) {
168 let classScope = <Scope>recorder.getScopeOfNode(classNode);
Dts2panda.ts343 let classNode = functionNode.parent; variable
344 if (ts.isClassLike(classNode)) {
346 typeIdx = typeRecorder.tryGetTypeIndex(ts.getOriginalNode(classNode));
DcompilerDriver.ts406 let classNode = node.parent;
407 return this.getInternalNameForCtor(classNode, node);
Drecorder.ts663 let classNode = node.parent;
664 name = getClassNameForConstructor(classNode);
Dcompiler.ts360 let classNode = <ts.ClassLikeDeclaration>decl.parent;
361 … if (jshelpers.getClassExtendsHeritageElement(classNode) && !extractCtorOfClass(classNode)) {
/arkcompiler/ets_frontend/ts2panda/src/base/
DtypeSystem.ts288 …constructor(classNode: ts.ClassDeclaration | ts.ClassExpression, builtinTypeIdx: number = undefine…
296 this.addCurrentType(classNode, this.shiftedTypeIndex);
297 this.fillInModifiers(classNode);
298 this.fillInHeritages(classNode);
299 this.fillInFieldsAndMethods(classNode);
306 …his.method_with_body_num > 0 || this.field_with_init_num > 0) && !hasAbstractModifier(classNode)) {