@@ -47,7 +47,7 @@ export class ClassDeclarationProcessor extends Processor {
4747
4848 // merge accessor properties
4949 const childAccProps = getAndDeleteChildConcepts < LCEAccessorProperty > (
50- ClassTraverser . MEMBERS_PROP ,
50+ ClassTraverser . BODY_PROP ,
5151 LCEAccessorProperty . conceptId ,
5252 childConcepts ,
5353 ) ;
@@ -76,13 +76,9 @@ export class ClassDeclarationProcessor extends Processor {
7676 parseClassLikeTypeParameters ( { globalContext, localContexts, node, ...unusedProcessingContext } , node ) ,
7777 getAndDeleteChildConcepts < LCETypeDeclared > ( ClassTraverser . EXTENDS_PROP , LCETypeDeclared . conceptId , childConcepts ) [ 0 ] ,
7878 getAndDeleteChildConcepts ( ClassTraverser . IMPLEMENTS_PROP , LCETypeDeclared . conceptId , childConcepts ) ,
79- getAndDeleteChildConcepts < LCEConstructorDeclaration > (
80- ClassTraverser . MEMBERS_PROP ,
81- LCEConstructorDeclaration . conceptId ,
82- childConcepts ,
83- ) [ 0 ] ,
84- getAndDeleteChildConcepts ( ClassTraverser . MEMBERS_PROP , LCEPropertyDeclaration . conceptId , childConcepts ) ,
85- getAndDeleteChildConcepts ( ClassTraverser . MEMBERS_PROP , LCEMethodDeclaration . conceptId , childConcepts ) ,
79+ getAndDeleteChildConcepts < LCEConstructorDeclaration > ( ClassTraverser . BODY_PROP , LCEConstructorDeclaration . conceptId , childConcepts ) [ 0 ] ,
80+ getAndDeleteChildConcepts ( ClassTraverser . BODY_PROP , LCEPropertyDeclaration . conceptId , childConcepts ) ,
81+ getAndDeleteChildConcepts ( ClassTraverser . BODY_PROP , LCEMethodDeclaration . conceptId , childConcepts ) ,
8682 [ ...accessorProperties . values ( ) ] ,
8783 getAndDeleteChildConcepts ( ClassTraverser . DECORATORS_PROP , LCEDecorator . conceptId , childConcepts ) ,
8884 CodeCoordinateUtils . getCodeCoordinates ( globalContext , node , true ) ,
@@ -101,17 +97,21 @@ export class ClassDeclarationProcessor extends Processor {
10197export class SuperClassDeclarationProcessor extends Processor {
10298 public executionCondition : ExecutionCondition = new ExecutionCondition (
10399 [ AST_NODE_TYPES . Identifier , AST_NODE_TYPES . MemberExpression ] ,
104- ( { node, localContexts} ) =>
105- ! ! node . parent && node . parent . type === AST_NODE_TYPES . ClassDeclaration && getParentPropName ( localContexts ) === ClassTraverser . EXTENDS_PROP
100+ ( { node, localContexts } ) =>
101+ ! ! node . parent && node . parent . type === AST_NODE_TYPES . ClassDeclaration && getParentPropName ( localContexts ) === ClassTraverser . EXTENDS_PROP ,
106102 ) ;
107103
108- public override postChildrenProcessing ( { node, ...unusedProcessingContext } : ProcessingContext ) : ConceptMap {
109- if ( node . parent ?. type === AST_NODE_TYPES . ClassDeclaration ) {
104+ public override postChildrenProcessing ( { node, ...unusedProcessingContext } : ProcessingContext ) : ConceptMap {
105+ if ( node . parent ?. type === AST_NODE_TYPES . ClassDeclaration ) {
110106 if ( node . type === AST_NODE_TYPES . Identifier || node . type === AST_NODE_TYPES . MemberExpression ) {
111- const superType = parseClassLikeBaseType ( {
107+ const superType = parseClassLikeBaseType (
108+ {
109+ node,
110+ ...unusedProcessingContext ,
111+ } ,
112112 node ,
113- ... unusedProcessingContext
114- } , node , node . parent . superTypeArguments ?. params ) ;
113+ node . parent . superTypeArguments ?. params ,
114+ ) ;
115115 if ( superType ) {
116116 return singleEntryConceptMap ( LCETypeDeclared . conceptId , superType ) ;
117117 }
@@ -124,18 +124,22 @@ export class SuperClassDeclarationProcessor extends Processor {
124124export class ImplementsDeclarationProcessor extends Processor {
125125 public executionCondition : ExecutionCondition = new ExecutionCondition (
126126 [ AST_NODE_TYPES . TSClassImplements ] ,
127- ( { node, localContexts} ) =>
127+ ( { node, localContexts } ) =>
128128 ! ! node . parent &&
129129 node . parent . type === AST_NODE_TYPES . ClassDeclaration &&
130- getParentPropName ( localContexts ) === ClassTraverser . IMPLEMENTS_PROP
130+ getParentPropName ( localContexts ) === ClassTraverser . IMPLEMENTS_PROP ,
131131 ) ;
132132
133- public override postChildrenProcessing ( { node, ...unusedProcessingContext } : ProcessingContext ) : ConceptMap {
133+ public override postChildrenProcessing ( { node, ...unusedProcessingContext } : ProcessingContext ) : ConceptMap {
134134 if ( node . type === AST_NODE_TYPES . TSClassImplements ) {
135- const implementsType = parseClassLikeBaseType ( {
135+ const implementsType = parseClassLikeBaseType (
136+ {
137+ node,
138+ ...unusedProcessingContext ,
139+ } ,
136140 node ,
137- ... unusedProcessingContext
138- } , node , node . typeArguments ?. params ) ;
141+ node . typeArguments ?. params ,
142+ ) ;
139143 if ( implementsType ) {
140144 return singleEntryConceptMap ( LCETypeDeclared . conceptId , implementsType ) ;
141145 }
0 commit comments