Microsoft/TypeScript
Ver no GitHubTypeChecker#getConstantValue(node) doesn't properly resolve values
Open
#4.217 aberto em 7 de ago. de 2015
BugDomain: APIHelp Wanted
Métricas do repositório
- Stars
- (48.455 stars)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)
Description
Courtesy of @ivogabe from here.
I'm working with the compiler api and I noticed that
TypeChecker#getConstantValue(node)only returns a value if I first callTypeChecker#getSymbolAtLocation(node).nodeis an ElementAccessExpression or a PropertyAccessExpression. Is that a bug or by design?