Decorators node array should have pos at token @ instead of actual decorator expression

This commit is contained in:
Sheetal Nandi
2015-11-19 16:46:25 -08:00
parent 83e569e6c3
commit ba2238fe58
4 changed files with 71 additions and 162 deletions

View File

@@ -4890,7 +4890,7 @@ namespace ts {
if (!decorators) {
decorators = <NodeArray<Decorator>>[];
decorators.pos = scanner.getStartPos();
decorators.pos = decoratorStart;
}
const decorator = <Decorator>createNode(SyntaxKind.Decorator, decoratorStart);