We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrayAccess_lfno_primary=>UniFieldAccess : ( expressionName$receiver '[' expression$index ']' | primaryNoNewArray_lfno_primary_lfno_arrayAccess_lfno_primary$receiver '[' expression$index ']' ) ( primaryNoNewArray_lfno_primary_lf_arrayAccess_lfno_primary$receiver '[' expression$index ']' )* ;
UMGで生成されたマッパーは以下です。
override public visitArrayAccess_lfno_primary(Java8Parser.ArrayAccess_lfno_primaryContext ctx) { val map = newHashMap val none = newArrayList map.put("none", none) val receiver = newArrayList map.put("receiver", receiver) val index = newArrayList map.put("index", index) ctx.children.forEach [ if (it instanceof RuleContext) { switch it.invokingState { case 2105: { receiver += it.visit } case 2307: { index += it.visit } case 2347: { receiver += it.visit } case 2350: { index += it.visit } case 2360: { receiver += it.visit } case 2362: { index += it.visit } default: { none += it.visit } } } else if (it instanceof TerminalNode) { switch it.symbol.type { default: { none += it.visit } } } ] map.castTo(UniFieldAccess) }
ここの
case 2347: { receiver += it.visit }
のinvokingStateが間違ってて、 2347を2348に修正するとマッパーが正常に動きます。
invokingState
2347
2348
The text was updated successfully, but these errors were encountered:
No branches or pull requests
UMGで生成されたマッパーは以下です。
ここの
の
invokingState
が間違ってて、2347
を2348
に修正するとマッパーが正常に動きます。The text was updated successfully, but these errors were encountered: