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

Missing format overrides #135

Closed
Geod24 opened this issue Apr 29, 2017 · 2 comments
Closed

Missing format overrides #135

Geod24 opened this issue Apr 29, 2017 · 2 comments

Comments

@Geod24
Copy link
Member

Geod24 commented Apr 29, 2017

I have some generic code that generates visitors from all AST types, and as I was extending it I encountered this error:

./src/altered/visitor/ParseTree.d(122): Error: none of the overloads of 'format' are callable using argument types (const(AnonymousEnumDeclaration)), candidates are:
./submodules/libdparse/src/dparse/formatter.d(76):        dparse.formatter.Formatter!(Sink).Formatter.format(const(AddExpression) addExpression)
./submodules/libdparse/src/dparse/formatter.d(83):        dparse.formatter.Formatter!(Sink).Formatter.format(const(AliasDeclaration) aliasDeclaration, const(Attribute[]) attrs = null)
./submodules/libdparse/src/dparse/formatter.d(130):        dparse.formatter.Formatter!(Sink).Formatter.format(const(AliasInitializer) aliasInitializer)
./submodules/libdparse/src/dparse/formatter.d(147):        dparse.formatter.Formatter!(Sink).Formatter.format(const(AliasThisDeclaration) decl, const(Attribute[]) attrs = null)
./submodules/libdparse/src/dparse/formatter.d(161):        dparse.formatter.Formatter!(Sink).Formatter.format(const(AlignAttribute) alignAttribute)
./src/altered/visitor/ParseTree.d(122):        ... (189 more, -v to show) ...
@Geod24 Geod24 changed the title Missing format override for AnonymousEnumMember Missing format overrides Apr 29, 2017
@Geod24
Copy link
Member Author

Geod24 commented Apr 29, 2017

Actually, it's:

  • AnonymousEnumDeclaration
  • AnonymousEnumMember
  • AutoDeclarationPart

@Hackerpilot Hackerpilot self-assigned this Apr 30, 2017
@ghost ghost modified the milestones: 7.1.0, 0.7.1 Jul 25, 2017
@ghost ghost removed this from the 0.8.0 milestone Apr 24, 2018
@ghost ghost added the formatter label Jan 16, 2019
@ghost
Copy link

ghost commented Jan 27, 2019

Don't fix this one, rather make #346.

@ghost ghost closed this as completed Jan 27, 2019
@Hackerpilot Hackerpilot removed their assignment Jan 28, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants