File tree Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -1682,6 +1682,10 @@ module ts {
1682
1682
}
1683
1683
}
1684
1684
1685
+ function emitInterfaceDeclaration ( node : InterfaceDeclaration ) {
1686
+ emitPinnedOrTripleSlashComments ( node ) ;
1687
+ }
1688
+
1685
1689
function emitEnumDeclaration ( node : EnumDeclaration ) {
1686
1690
emitLeadingComments ( node ) ;
1687
1691
if ( ! ( node . flags & NodeFlags . Export ) ) {
@@ -2089,6 +2093,8 @@ module ts {
2089
2093
return emitVariableDeclaration ( < VariableDeclaration > node ) ;
2090
2094
case SyntaxKind . ClassDeclaration :
2091
2095
return emitClassDeclaration ( < ClassDeclaration > node ) ;
2096
+ case SyntaxKind . InterfaceDeclaration :
2097
+ return emitInterfaceDeclaration ( < InterfaceDeclaration > node ) ;
2092
2098
case SyntaxKind . EnumDeclaration :
2093
2099
return emitEnumDeclaration ( < EnumDeclaration > node ) ;
2094
2100
case SyntaxKind . ModuleDeclaration :
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ interface Third extends JQueryEventObjectTest, SecondEvent {}
16
16
17
17
18
18
//// [app.js]
19
+ ///<reference path='jquery.d.ts' />
Original file line number Diff line number Diff line change 1
- //// [commentOnInterface1.ts]
1
+ //// [tests/cases/compiler/commentOnInterface1.ts] ////
2
+
3
+ //// [a.ts]
2
4
/*! Keep this pinned comment */
3
5
interface I {
4
6
}
5
7
6
8
// Don't keep this comment.
7
9
interface I2 {
10
+ }
11
+
12
+ //// [b.ts]
13
+ ///<reference path='a.ts'/>
14
+ interface I3 {
8
15
}
9
16
10
- //// [commentOnInterface1.js]
17
+ //// [a.js]
18
+ /*! Keep this pinned comment */
19
+ //// [b.js]
20
+ ///<reference path='a.ts'/>
Original file line number Diff line number Diff line change 1
- === tests/cases/compiler/commentOnInterface1.ts ===
1
+ === tests/cases/compiler/b.ts ===
2
+ ///<reference path='a.ts'/>
3
+ interface I3 {
4
+ >I3 : I3
5
+ }
6
+ === tests/cases/compiler/a.ts ===
2
7
/*! Keep this pinned comment */
3
8
interface I {
4
9
>I : I
@@ -8,3 +13,4 @@ interface I {
8
13
interface I2 {
9
14
>I2 : I2
10
15
}
16
+
Original file line number Diff line number Diff line change
1
+ //@filename : a.ts
1
2
/*! Keep this pinned comment */
2
3
interface I {
3
4
}
4
5
5
6
// Don't keep this comment.
6
7
interface I2 {
8
+ }
9
+
10
+ //@filename : b.ts
11
+ ///<reference path='a.ts'/>
12
+ interface I3 {
7
13
}
You can’t perform that action at this time.
0 commit comments