Commit 4369c0bb authored by Johannes Mey's avatar Johannes Mey
Browse files

allow static inner classes as component types

parent acb7be3a
Pipeline #4958 passed with stage
in 2 minutes and 25 seconds
......@@ -34,9 +34,16 @@ SimpleTypeUse s_type_use =
ID {: return new SimpleTypeUse(ID); :}
;
ArrayList inner_type_use
= ID
| inner_type_use DOT ID
;
TypeUse type_use =
s_type_use.u {: return u; :}
| parameterized_type_use.p {: return p; :}
// s_type_use.u {: return u; :}
// |
parameterized_type_use.p {: return p; :}
| inner_type_use.p {: return new SimpleTypeUse((String)p.stream().map( x -> ((Symbol)x).value.toString()).collect(java.util.stream.Collectors.joining("."))); :}
;
ParameterizedTypeUse parameterized_type_use =
ID LT type_use_list.l GT {: return new ParameterizedTypeUse(ID, l); :}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment