Skip to content
New issue

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

Node erroneously marked as MEMBER_SELECT when actually IDENTIFIER #82

Closed
JakeWharton opened this issue Dec 25, 2015 · 1 comment
Closed

Comments

@JakeWharton
Copy link
Contributor

Expected code:

return new AutoValue_Foo(
    (CharSequence) in.readCharSequence()
);

Actual:

return new AutoValue_Foo(
    (java.lang.CharSequence) in.readCharSequence()
);

Diff failure:

> Difference in expected tree and actual tree.
  Expected node: Line 36 COMPILATION_UNIT->CLASS(AutoValue_Foo)->VARIABLE(CREATOR)->NEW_CLASS->CLASS()->METHOD(createFromParcel)->BLOCK(non-static)->RETURN->NEW_CLASS->TYPE_CAST->IDENTIFIER(CharSequence)->IDENTIFIER(CharSequence)
  Actual node: Line 36 COMPILATION_UNIT->CLASS(AutoValue_Foo)->VARIABLE(CREATOR)->NEW_CLASS->CLASS()->METHOD(createFromParcel)->BLOCK(non-static)->RETURN->NEW_CLASS->TYPE_CAST->MEMBER_SELECT(CharSequence)->MEMBER_SELECT(CharSequence)
  Expected node kind to be <IDENTIFIER> but was <MEMBER_SELECT>.
@JakeWharton
Copy link
Contributor Author

User error! Derp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant