From 81e784c01e02dfc647a561911a14e9007c34046c Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 16 Oct 2015 14:36:36 -0700 Subject: [PATCH] Fixed linter error --- src/compiler/checker.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 6382dfa99d9..c0ede7db3a8 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -8652,7 +8652,7 @@ namespace ts { let classSymbol = getSymbolOfNode(node); return getTypeOfSymbol(classSymbol); } - + if (node.kind === SyntaxKind.Parameter) { // For a parameter decorator, the `target` is the parent type of the // parameter's containing method. @@ -8662,7 +8662,7 @@ namespace ts { return getTypeOfSymbol(classSymbol); } } - + if (node.kind === SyntaxKind.PropertyDeclaration || node.kind === SyntaxKind.MethodDeclaration || node.kind === SyntaxKind.GetAccessor || @@ -8699,7 +8699,7 @@ namespace ts { Debug.fail("Class decorators should not have a second synthetic argument."); return unknownType; } - + if (node.kind === SyntaxKind.Parameter) { node = node.parent; if (node.kind === SyntaxKind.Constructor) { @@ -8710,7 +8710,7 @@ namespace ts { // For a non-constructor parameter decorator, the `propertyKey` will be either // a string or a symbol, based on the name of the parameter's containing method. } - + if (node.kind === SyntaxKind.PropertyDeclaration || node.kind === SyntaxKind.MethodDeclaration || node.kind === SyntaxKind.GetAccessor || @@ -8759,17 +8759,17 @@ namespace ts { Debug.fail("Class decorators should not have a third synthetic argument."); return unknownType; } - + if (node.kind === SyntaxKind.Parameter) { // The `parameterIndex` for a parameter decorator is always a number return numberType; } - + if (node.kind === SyntaxKind.PropertyDeclaration) { Debug.fail("Property decorators should not have a third synthetic argument."); return unknownType; } - + if (node.kind === SyntaxKind.MethodDeclaration || node.kind === SyntaxKind.GetAccessor || node.kind === SyntaxKind.SetAccessor) { @@ -8782,7 +8782,7 @@ namespace ts { Debug.fail("Unsupported decorator target."); return unknownType; } - + /** * Returns the effective argument type for the provided argument to a decorator. */