-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptDomain: DecoratorsThe issue relates to the decorator syntaxThe issue relates to the decorator syntaxHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version:
1.8.10
Code
@Component({
selector: SELECTOR
})
class SampleComponent {}
const SELECTOR = 'ng-demo';Expected behavior:
With sample SyntaxWalker based on tslint, once I visit the PropertyAssignment - selector: SELECTOR and invoke typeChecker.getSymbolAtLocation(prop.initializer); I should get the SELECTOR symbol.
Actual behavior:
TypeError: Cannot read property 'members' of undefined
at resolveName (node_modules/typescript/lib/typescript.js:15307:73)
at resolveEntityName (node_modules/typescript/lib/typescript.js:15725:26)
at getSymbolOfEntityNameOrPropertyAccessExpression (node_modules/typescript/lib/typescript.js:28708:28)
at Object.getSymbolAtLocation (node_modules/typescript/lib/typescript.js:28770:28)
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptDomain: DecoratorsThe issue relates to the decorator syntaxThe issue relates to the decorator syntaxHelp WantedYou can do thisYou can do this