You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2020/09/08 22:05:19 UTC

[GitHub] [groovy] eric-milles commented on pull request #1362: GROOVY-9712: type name may start with more than A-Z (CapitalizedIdentifier)

eric-milles commented on pull request #1362:
URL: https://github.com/apache/groovy/pull/1362#issuecomment-689161300


   From the issue:
   >Another way of looking at this is that field/property uses the generalized-typename rule and a method's return type uses standard-typename rule.  The later requires a capital letter (A-Z) as the first name character.  The former has allowances for lowercase names.  I'm not sure why this distinction exists in the parser.
   ```
   generalClassOrInterfaceType
   options { baseContext = classOrInterfaceType; }
       :   qualifiedClassName typeArguments?
       ;
   
   standardClassOrInterfaceType
   options { baseContext = classOrInterfaceType; }
       :   qualifiedStandardClassName typeArguments?
       ;
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org