@@ -95,7 +95,7 @@ function buildJavaClassDefinition(
9595 memberDeclaration.fieldDeclaration()!
9696 .variableDeclarators()
9797 .variableDeclarator()
98- .forEach(field => classFieldsNames.push(field.variableDeclaratorId().IDENTIFIER ().text));
98+ .forEach(field => classFieldsNames.push(field.variableDeclaratorId().identifier ().text));
9999 }
100100 */
101101
@@ -124,7 +124,7 @@ function buildJavaClassDefinition(
124124 classMethods . push (
125125 new Method (
126126 method . typeTypeOrVoid ( ) . text ,
127- method . IDENTIFIER ( ) . text ,
127+ method . identifier ( ) . text ,
128128 methodParameters ,
129129 hasStaticAccessModifier ( classBody . modifier ( ) )
130130 )
@@ -136,7 +136,7 @@ function buildJavaClassDefinition(
136136 } ) ;
137137
138138 return new JavaClass (
139- classDeclaration . IDENTIFIER ( ) . text ,
139+ classDeclaration . identifier ( ) . text ,
140140 classDeclaration . typeParameters ( ) ?. text ,
141141 accessModifier ,
142142 classDependencies ,
@@ -147,7 +147,7 @@ function buildJavaClassDefinition(
147147// TODO: improve to check the parameters and fields
148148function isSetter ( method : MethodDeclarationContext , methodParameters : Parameter [ ] | null ) {
149149 return (
150- method . IDENTIFIER ( ) . text . startsWith ( 'set' ) &&
150+ method . identifier ( ) . text . startsWith ( 'set' ) &&
151151 methodParameters &&
152152 methodParameters . length === 1 &&
153153 method . typeTypeOrVoid ( ) . VOID ( )
@@ -184,7 +184,7 @@ function extractParameters(formalParameters: FormalParametersContext): Array<Par
184184
185185 return constructorParams
186186 . formalParameter ( )
187- . map ( p => new Parameter ( p . typeType ( ) . text , p . variableDeclaratorId ( ) . IDENTIFIER ( ) . text ) ) ;
187+ . map ( p => new Parameter ( p . typeType ( ) . text , p . variableDeclaratorId ( ) . identifier ( ) . text ) ) ;
188188 } catch ( error ) {
189189 console . error ( 'Error to extract parameters from ' , formalParameters . text , ':' , error ) ;
190190 return null ;
0 commit comments