@@ -526,7 +526,7 @@ namespace ts {
526
526
/* @internal */ contextualMapper ?: TypeMapper ; // Mapper for contextual type
527
527
}
528
528
529
- export interface HasJSDocNodes {
529
+ export interface JSDocContainer {
530
530
/* @internal */ jsDoc ?: JSDoc [ ] ; // JSDoc that directly precedes this node
531
531
/* @internal */ jsDocCache ?: ReadonlyArray < JSDocTag > ; // Cache for getJSDocTags
532
532
}
@@ -582,7 +582,7 @@ namespace ts {
582
582
export type EqualsToken = Token < SyntaxKind . EqualsToken > ;
583
583
export type AsteriskToken = Token < SyntaxKind . AsteriskToken > ;
584
584
export type EqualsGreaterThanToken = Token < SyntaxKind . EqualsGreaterThanToken > ;
585
- export type EndOfFileToken = Token < SyntaxKind . EndOfFileToken > & HasJSDocNodes ;
585
+ export type EndOfFileToken = Token < SyntaxKind . EndOfFileToken > & JSDocContainer ;
586
586
export type AtToken = Token < SyntaxKind . AtToken > ;
587
587
export type ReadonlyToken = Token < SyntaxKind . ReadonlyKeyword > ;
588
588
export type AwaitKeywordToken = Token < SyntaxKind . AwaitKeyword > ;
@@ -687,7 +687,7 @@ namespace ts {
687
687
expression ?: Expression ;
688
688
}
689
689
690
- export interface SignatureDeclarationBase extends NamedDeclaration , HasJSDocNodes {
690
+ export interface SignatureDeclarationBase extends NamedDeclaration , JSDocContainer {
691
691
kind : SignatureDeclaration [ "kind" ] ;
692
692
name ?: PropertyName ;
693
693
typeParameters ?: NodeArray < TypeParameterDeclaration > ;
@@ -734,7 +734,7 @@ namespace ts {
734
734
declarations : NodeArray < VariableDeclaration > ;
735
735
}
736
736
737
- export interface ParameterDeclaration extends NamedDeclaration , HasJSDocNodes {
737
+ export interface ParameterDeclaration extends NamedDeclaration , JSDocContainer {
738
738
kind : SyntaxKind . Parameter ;
739
739
parent ?: SignatureDeclaration ;
740
740
dotDotDotToken ?: DotDotDotToken ; // Present on rest parameter
@@ -753,15 +753,15 @@ namespace ts {
753
753
initializer ?: Expression ; // Optional initializer
754
754
}
755
755
756
- export interface PropertySignature extends TypeElement , HasJSDocNodes {
756
+ export interface PropertySignature extends TypeElement , JSDocContainer {
757
757
kind : SyntaxKind . PropertySignature ;
758
758
name : PropertyName ; // Declared property name
759
759
questionToken ?: QuestionToken ; // Present on optional property
760
760
type ?: TypeNode ; // Optional type annotation
761
761
initializer ?: Expression ; // Optional initializer
762
762
}
763
763
764
- export interface PropertyDeclaration extends ClassElement , HasJSDocNodes {
764
+ export interface PropertyDeclaration extends ClassElement , JSDocContainer {
765
765
kind : SyntaxKind . PropertyDeclaration ;
766
766
questionToken ?: QuestionToken ; // Present for use with reporting a grammar error
767
767
name : PropertyName ;
@@ -782,15 +782,15 @@ namespace ts {
782
782
| AccessorDeclaration
783
783
;
784
784
785
- export interface PropertyAssignment extends ObjectLiteralElement , HasJSDocNodes {
785
+ export interface PropertyAssignment extends ObjectLiteralElement , JSDocContainer {
786
786
parent : ObjectLiteralExpression ;
787
787
kind : SyntaxKind . PropertyAssignment ;
788
788
name : PropertyName ;
789
789
questionToken ?: QuestionToken ;
790
790
initializer : Expression ;
791
791
}
792
792
793
- export interface ShorthandPropertyAssignment extends ObjectLiteralElement , HasJSDocNodes {
793
+ export interface ShorthandPropertyAssignment extends ObjectLiteralElement , JSDocContainer {
794
794
parent : ObjectLiteralExpression ;
795
795
kind : SyntaxKind . ShorthandPropertyAssignment ;
796
796
name : Identifier ;
@@ -801,7 +801,7 @@ namespace ts {
801
801
objectAssignmentInitializer ?: Expression ;
802
802
}
803
803
804
- export interface SpreadAssignment extends ObjectLiteralElement , HasJSDocNodes {
804
+ export interface SpreadAssignment extends ObjectLiteralElement , JSDocContainer {
805
805
parent : ObjectLiteralExpression ;
806
806
kind : SyntaxKind . SpreadAssignment ;
807
807
expression : Expression ;
@@ -899,13 +899,13 @@ namespace ts {
899
899
// Because of this, it may be necessary to determine what sort of MethodDeclaration you have
900
900
// at later stages of the compiler pipeline. In that case, you can either check the parent kind
901
901
// of the method, or use helpers like isObjectLiteralMethodDeclaration
902
- export interface MethodDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , HasJSDocNodes {
902
+ export interface MethodDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , JSDocContainer {
903
903
kind : SyntaxKind . MethodDeclaration ;
904
904
name : PropertyName ;
905
905
body ?: FunctionBody ;
906
906
}
907
907
908
- export interface ConstructorDeclaration extends FunctionLikeDeclarationBase , ClassElement , HasJSDocNodes {
908
+ export interface ConstructorDeclaration extends FunctionLikeDeclarationBase , ClassElement , JSDocContainer {
909
909
kind : SyntaxKind . Constructor ;
910
910
parent ?: ClassDeclaration | ClassExpression ;
911
911
body ?: FunctionBody ;
@@ -919,7 +919,7 @@ namespace ts {
919
919
920
920
// See the comment on MethodDeclaration for the intuition behind GetAccessorDeclaration being a
921
921
// ClassElement and an ObjectLiteralElement.
922
- export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , HasJSDocNodes {
922
+ export interface GetAccessorDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , JSDocContainer {
923
923
kind : SyntaxKind . GetAccessor ;
924
924
parent ?: ClassDeclaration | ClassExpression | ObjectLiteralExpression ;
925
925
name : PropertyName ;
@@ -928,7 +928,7 @@ namespace ts {
928
928
929
929
// See the comment on MethodDeclaration for the intuition behind SetAccessorDeclaration being a
930
930
// ClassElement and an ObjectLiteralElement.
931
- export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , HasJSDocNodes {
931
+ export interface SetAccessorDeclaration extends FunctionLikeDeclarationBase , ClassElement , ObjectLiteralElement , JSDocContainer {
932
932
kind : SyntaxKind . SetAccessor ;
933
933
parent ?: ClassDeclaration | ClassExpression | ObjectLiteralExpression ;
934
934
name : PropertyName ;
@@ -1393,13 +1393,13 @@ namespace ts {
1393
1393
export type FunctionBody = Block ;
1394
1394
export type ConciseBody = FunctionBody | Expression ;
1395
1395
1396
- export interface FunctionExpression extends PrimaryExpression , FunctionLikeDeclarationBase , HasJSDocNodes {
1396
+ export interface FunctionExpression extends PrimaryExpression , FunctionLikeDeclarationBase , JSDocContainer {
1397
1397
kind : SyntaxKind . FunctionExpression ;
1398
1398
name ?: Identifier ;
1399
1399
body : FunctionBody ; // Required, whereas the member inherited from FunctionDeclaration is optional
1400
1400
}
1401
1401
1402
- export interface ArrowFunction extends Expression , FunctionLikeDeclarationBase , HasJSDocNodes {
1402
+ export interface ArrowFunction extends Expression , FunctionLikeDeclarationBase , JSDocContainer {
1403
1403
kind : SyntaxKind . ArrowFunction ;
1404
1404
equalsGreaterThanToken : EqualsGreaterThanToken ;
1405
1405
body : ConciseBody ;
@@ -1478,7 +1478,7 @@ namespace ts {
1478
1478
literal : TemplateMiddle | TemplateTail ;
1479
1479
}
1480
1480
1481
- export interface ParenthesizedExpression extends PrimaryExpression , HasJSDocNodes {
1481
+ export interface ParenthesizedExpression extends PrimaryExpression , JSDocContainer {
1482
1482
kind : SyntaxKind . ParenthesizedExpression ;
1483
1483
expression : Expression ;
1484
1484
}
@@ -1734,12 +1734,12 @@ namespace ts {
1734
1734
/*@internal */ multiLine ?: boolean ;
1735
1735
}
1736
1736
1737
- export interface VariableStatement extends Statement , HasJSDocNodes {
1737
+ export interface VariableStatement extends Statement , JSDocContainer {
1738
1738
kind : SyntaxKind . VariableStatement ;
1739
1739
declarationList : VariableDeclarationList ;
1740
1740
}
1741
1741
1742
- export interface ExpressionStatement extends Statement , HasJSDocNodes {
1742
+ export interface ExpressionStatement extends Statement , JSDocContainer {
1743
1743
kind : SyntaxKind . ExpressionStatement ;
1744
1744
expression : Expression ;
1745
1745
}
@@ -1845,7 +1845,7 @@ namespace ts {
1845
1845
1846
1846
export type CaseOrDefaultClause = CaseClause | DefaultClause ;
1847
1847
1848
- export interface LabeledStatement extends Statement , HasJSDocNodes {
1848
+ export interface LabeledStatement extends Statement , JSDocContainer {
1849
1849
kind : SyntaxKind . LabeledStatement ;
1850
1850
label : Identifier ;
1851
1851
statement : Statement ;
@@ -1872,7 +1872,7 @@ namespace ts {
1872
1872
1873
1873
export type DeclarationWithTypeParameters = SignatureDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | JSDocTemplateTag ;
1874
1874
1875
- export interface ClassLikeDeclarationBase extends NamedDeclaration , HasJSDocNodes {
1875
+ export interface ClassLikeDeclarationBase extends NamedDeclaration , JSDocContainer {
1876
1876
kind : SyntaxKind . ClassDeclaration | SyntaxKind . ClassExpression ;
1877
1877
name ?: Identifier ;
1878
1878
typeParameters ?: NodeArray < TypeParameterDeclaration > ;
@@ -1902,7 +1902,7 @@ namespace ts {
1902
1902
questionToken ?: QuestionToken ;
1903
1903
}
1904
1904
1905
- export interface InterfaceDeclaration extends DeclarationStatement , HasJSDocNodes {
1905
+ export interface InterfaceDeclaration extends DeclarationStatement , JSDocContainer {
1906
1906
kind : SyntaxKind . InterfaceDeclaration ;
1907
1907
name : Identifier ;
1908
1908
typeParameters ?: NodeArray < TypeParameterDeclaration > ;
@@ -1917,14 +1917,14 @@ namespace ts {
1917
1917
types : NodeArray < ExpressionWithTypeArguments > ;
1918
1918
}
1919
1919
1920
- export interface TypeAliasDeclaration extends DeclarationStatement , HasJSDocNodes {
1920
+ export interface TypeAliasDeclaration extends DeclarationStatement , JSDocContainer {
1921
1921
kind : SyntaxKind . TypeAliasDeclaration ;
1922
1922
name : Identifier ;
1923
1923
typeParameters ?: NodeArray < TypeParameterDeclaration > ;
1924
1924
type : TypeNode ;
1925
1925
}
1926
1926
1927
- export interface EnumMember extends NamedDeclaration , HasJSDocNodes {
1927
+ export interface EnumMember extends NamedDeclaration , JSDocContainer {
1928
1928
kind : SyntaxKind . EnumMember ;
1929
1929
parent ?: EnumDeclaration ;
1930
1930
// This does include ComputedPropertyName, but the parser will give an error
@@ -1933,7 +1933,7 @@ namespace ts {
1933
1933
initializer ?: Expression ;
1934
1934
}
1935
1935
1936
- export interface EnumDeclaration extends DeclarationStatement , HasJSDocNodes {
1936
+ export interface EnumDeclaration extends DeclarationStatement , JSDocContainer {
1937
1937
kind : SyntaxKind . EnumDeclaration ;
1938
1938
name : Identifier ;
1939
1939
members : NodeArray < EnumMember > ;
@@ -1943,7 +1943,7 @@ namespace ts {
1943
1943
1944
1944
export type ModuleBody = NamespaceBody | JSDocNamespaceBody ;
1945
1945
1946
- export interface ModuleDeclaration extends DeclarationStatement , HasJSDocNodes {
1946
+ export interface ModuleDeclaration extends DeclarationStatement , JSDocContainer {
1947
1947
kind : SyntaxKind . ModuleDeclaration ;
1948
1948
parent ?: ModuleBody | SourceFile ;
1949
1949
name : ModuleName ;
@@ -1977,7 +1977,7 @@ namespace ts {
1977
1977
* - import x = require("mod");
1978
1978
* - import x = M.x;
1979
1979
*/
1980
- export interface ImportEqualsDeclaration extends DeclarationStatement , HasJSDocNodes {
1980
+ export interface ImportEqualsDeclaration extends DeclarationStatement , JSDocContainer {
1981
1981
kind : SyntaxKind . ImportEqualsDeclaration ;
1982
1982
parent ?: SourceFile | ModuleBlock ;
1983
1983
name : Identifier ;
0 commit comments