Navigation Menu

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

dollar sign in enum value not escaped #533

Closed
zoechi opened this issue Nov 9, 2018 · 3 comments
Closed

dollar sign in enum value not escaped #533

zoechi opened this issue Nov 9, 2018 · 3 comments
Assignees
Labels

Comments

@zoechi
Copy link
Contributor

zoechi commented Nov 9, 2018

  @BuiltValueEnumConst(wireName: 'OBJECT')
  static const SysDirectiveLocation object$ = _$object$;

  @BuiltValueEnumConst(wireName: 'ENUM')
  static const SysDirectiveLocation enum$ = _$enum$;
line 29, column 77: Expected an identifier.
const SysDirectiveLocation _$object$ = const SysDirectiveLocation._('object$');
                                                                            ^
line 34, column 73: Expected an identifier.
const SysDirectiveLocation _$enum$ = const SysDirectiveLocation._('enum$');
                                                                        ^
line 49, column 14: Expected an identifier.
case 'object$': return _$object$;
             ^
line 54, column 12: Expected an identifier.
case 'enum$': return _$enum$;
           ^
line 93, column 9: Expected an identifier.
'object$': 'OBJECT',
@davidmorgan
Copy link
Collaborator

Thanks for reporting. Should be easy enough to fix!

@smkhalsa
Copy link

This is still an issue if a custom wirename is provided.

@davidmorgan
Copy link
Collaborator

Thanks for letting me know, will try to take a look the next time I do a round of bug fixes.

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

No branches or pull requests

3 participants