Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

failing test for no-unreachable #99

Closed
wants to merge 2 commits into from

Conversation

mightyiam
Copy link
Contributor

@mightyiam mightyiam commented Dec 6, 2017

Please provide pointers on solving this.

eslint/typescript-eslint-parser#127

@mightyiam mightyiam changed the title failig test for no-unreachable issue #127 failing test for no-unreachable issue #127 Dec 6, 2017
@mightyiam mightyiam changed the title failing test for no-unreachable issue #127 failing test for no-unreachable Dec 6, 2017
@j-f1
Copy link
Collaborator

j-f1 commented Dec 6, 2017

Looks like the code responsible for setting this type is:

lib/convert.js:610

/**
 * Prefix FunctionDeclarations within TypeScript namespaces with "TS"
 */
if (node.parent && node.parent.kind === SyntaxKind.ModuleBlock) {
    functionDeclarationType = AST_NODE_TYPES.TSNamespaceFunctionDeclaration;
}

@bradzacher
Copy link
Owner

closing this as it was a bug in the parser

@bradzacher bradzacher closed this Nov 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants