@@ -2348,7 +2348,7 @@ public Expression visitPathElement(PathElementContext ctx) {
23482348 return configureAST (methodCallExpression , ctx );
23492349 }
23502350
2351- if (baseExpr instanceof ClassExpression ) { // void and primitive type AST node must be an instance of ClassExpression
2351+ if (baseExpr instanceof VariableExpression ) { // void and primitive type AST node must be an instance of VariableExpression
23522352 String baseExprText = baseExpr .getText ();
23532353 if (VOID_STR .equals (baseExprText )) { // e.g. void()
23542354 return configureAST (createCallMethodCallExpression (this .createConstantExpression (baseExpr ), argumentsExpr ), ctx );
@@ -3122,7 +3122,7 @@ public MapExpression visitMapPrmrAlt(MapPrmrAltContext ctx) {
31223122 }
31233123
31243124 @ Override
3125- public ClassExpression visitBuiltInTypePrmrAlt (BuiltInTypePrmrAltContext ctx ) {
3125+ public VariableExpression visitBuiltInTypePrmrAlt (BuiltInTypePrmrAltContext ctx ) {
31263126 return configureAST (this .visitBuiltInType (ctx .builtInType ()), ctx );
31273127 }
31283128
@@ -3366,7 +3366,7 @@ public VariableExpression visitIdentifier(IdentifierContext ctx) {
33663366 */
33673367
33683368 @ Override
3369- public ClassExpression visitBuiltInType (BuiltInTypeContext ctx ) {
3369+ public VariableExpression visitBuiltInType (BuiltInTypeContext ctx ) {
33703370 String text ;
33713371 if (asBoolean (ctx .VOID ())) {
33723372 text = ctx .VOID ().getText ();
@@ -3376,10 +3376,9 @@ public ClassExpression visitBuiltInType(BuiltInTypeContext ctx) {
33763376 throw createParsingFailedException ("Unsupported built-in type: " + ctx , ctx );
33773377 }
33783378
3379- return configureAST (new ClassExpression ( ClassHelper . make ( text ) ), ctx );
3379+ return configureAST (new VariableExpression ( text ), ctx );
33803380 }
33813381
3382-
33833382 @ Override
33843383 public ListExpression visitList (ListContext ctx ) {
33853384 if (asBoolean (ctx .COMMA ()) && !asBoolean (ctx .expressionList ())) {
0 commit comments