projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor fix
[cdsspec-compiler.git]
/
grammer
/
util.jj
diff --git
a/grammer/util.jj
b/grammer/util.jj
index 901e2e6f6fac466097a50336d768546f5f50a9fa..5b5446bb9c102c3882efd813cab07652ea4687be 100644
(file)
--- a/
grammer/util.jj
+++ b/
grammer/util.jj
@@
-280,7
+280,10
@@
String Type() :
(<CONST>
{ type = "const"; }
)?
(<CONST>
{ type = "const"; }
)?
- (((str = <STRUCT>.image | str = <CLASS>.image | str = <UNSIGNED>.image) { type = type + " " + str; })?
+ (
+ ((str = <STRUCT>.image | str = <CLASS>.image | str = <UNSIGNED>.image) {
+ type = type.equals("") ? type + str : type + " " + str;
+ })?
(
name = ParseQualifiedName() {
if (!type.equals(""))
(
name = ParseQualifiedName() {
if (!type.equals(""))