@@ -8652,7 +8652,7 @@ namespace ts {
8652
8652
let classSymbol = getSymbolOfNode(node);
8653
8653
return getTypeOfSymbol(classSymbol);
8654
8654
}
8655
-
8655
+
8656
8656
if (node.kind === SyntaxKind.Parameter) {
8657
8657
// For a parameter decorator, the `target` is the parent type of the
8658
8658
// parameter's containing method.
@@ -8662,7 +8662,7 @@ namespace ts {
8662
8662
return getTypeOfSymbol(classSymbol);
8663
8663
}
8664
8664
}
8665
-
8665
+
8666
8666
if (node.kind === SyntaxKind.PropertyDeclaration ||
8667
8667
node.kind === SyntaxKind.MethodDeclaration ||
8668
8668
node.kind === SyntaxKind.GetAccessor ||
@@ -8699,7 +8699,7 @@ namespace ts {
8699
8699
Debug.fail("Class decorators should not have a second synthetic argument.");
8700
8700
return unknownType;
8701
8701
}
8702
-
8702
+
8703
8703
if (node.kind === SyntaxKind.Parameter) {
8704
8704
node = node.parent;
8705
8705
if (node.kind === SyntaxKind.Constructor) {
@@ -8710,7 +8710,7 @@ namespace ts {
8710
8710
// For a non-constructor parameter decorator, the `propertyKey` will be either
8711
8711
// a string or a symbol, based on the name of the parameter's containing method.
8712
8712
}
8713
-
8713
+
8714
8714
if (node.kind === SyntaxKind.PropertyDeclaration ||
8715
8715
node.kind === SyntaxKind.MethodDeclaration ||
8716
8716
node.kind === SyntaxKind.GetAccessor ||
@@ -8759,17 +8759,17 @@ namespace ts {
8759
8759
Debug.fail("Class decorators should not have a third synthetic argument.");
8760
8760
return unknownType;
8761
8761
}
8762
-
8762
+
8763
8763
if (node.kind === SyntaxKind.Parameter) {
8764
8764
// The `parameterIndex` for a parameter decorator is always a number
8765
8765
return numberType;
8766
8766
}
8767
-
8767
+
8768
8768
if (node.kind === SyntaxKind.PropertyDeclaration) {
8769
8769
Debug.fail("Property decorators should not have a third synthetic argument.");
8770
8770
return unknownType;
8771
8771
}
8772
-
8772
+
8773
8773
if (node.kind === SyntaxKind.MethodDeclaration ||
8774
8774
node.kind === SyntaxKind.GetAccessor ||
8775
8775
node.kind === SyntaxKind.SetAccessor) {
@@ -8782,7 +8782,7 @@ namespace ts {
8782
8782
Debug.fail("Unsupported decorator target.");
8783
8783
return unknownType;
8784
8784
}
8785
-
8785
+
8786
8786
/**
8787
8787
* Returns the effective argument type for the provided argument to a decorator.
8788
8788
*/
0 commit comments