angular / dgeni-packages

A collection of dgeni packages for generating documentation from source code.
MIT License
142 stars 106 forks source link

Added support for named exports #249

Closed stofolus closed 6 years ago

stofolus commented 6 years ago

I've encountered an unwanted warning when you use a named export:

export function calc() {
    doStuff();
}

Default exports were already supported so I figured it should be handled in the same way.

stofolus commented 6 years ago

Now it looks at the right node or returns null. I've also updated the ExportDefaultDeclarationNodeMatcher to do the same.

I hope this is the correct behaviour!

Thanks for you help and patience. I haven't worked with an AST tree before.

petebacondarwin commented 6 years ago

Oops I merged but realised that the commit messages are not in the correct format. I am going to revert and fix up.