22/// <reference path="..\services\services.ts" />
33/// <reference path="protocol.d.ts" />
44/// <reference path="session.ts" />
5- /// <reference path="node.d.ts" />
65
76module ts . server {
87 export interface Logger {
@@ -28,7 +27,7 @@ module ts.server {
2827 } ) ;
2928 }
3029
31- class ScriptInfo {
30+ export class ScriptInfo {
3231 svc : ScriptVersionCache ;
3332 children : ScriptInfo [ ] = [ ] ; // files referenced by this file
3433 defaultProject : Project ; // project to use by default for file
@@ -80,7 +79,7 @@ module ts.server {
8079 }
8180 }
8281
83- class LSHost implements ts . LanguageServiceHost {
82+ export class LSHost implements ts . LanguageServiceHost {
8483 ls : ts . LanguageService = null ;
8584 compilationSettings : ts . CompilerOptions ;
8685 filenameToScript : ts . Map < ScriptInfo > = { } ;
@@ -273,7 +272,7 @@ module ts.server {
273272 }
274273 }
275274
276- interface ProjectOptions {
275+ export interface ProjectOptions {
277276 // these fields can be present in the project file
278277 files ?: string [ ] ;
279278 compilerOptions ?: ts . CompilerOptions ;
@@ -376,7 +375,7 @@ module ts.server {
376375 }
377376 }
378377
379- interface ProjectOpenResult {
378+ export interface ProjectOpenResult {
380379 success ?: boolean ;
381380 errorMsg ?: string ;
382381 project ?: Project ;
@@ -392,11 +391,11 @@ module ts.server {
392391 return copiedList ;
393392 }
394393
395- interface ProjectServiceEventHandler {
394+ export interface ProjectServiceEventHandler {
396395 ( eventName : string , project : Project , fileName : string ) : void ;
397396 }
398397
399- interface HostConfiguration {
398+ export interface HostConfiguration {
400399 formatCodeOptions : ts . FormatCodeOptions ;
401400 hostInfo : string ;
402401 }
@@ -953,7 +952,7 @@ module ts.server {
953952
954953 }
955954
956- class CompilerService {
955+ export class CompilerService {
957956 host : LSHost ;
958957 languageService : ts . LanguageService ;
959958 classifier : ts . Classifier ;
@@ -999,7 +998,7 @@ module ts.server {
999998
1000999 }
10011000
1002- interface LineCollection {
1001+ export interface LineCollection {
10031002 charCount ( ) : number ;
10041003 lineCount ( ) : number ;
10051004 isLeaf ( ) : boolean ;
@@ -1013,7 +1012,7 @@ module ts.server {
10131012 leaf ?: LineLeaf ;
10141013 }
10151014
1016- enum CharRangeSection {
1015+ export enum CharRangeSection {
10171016 PreStart ,
10181017 Start ,
10191018 Entire ,
@@ -1022,7 +1021,7 @@ module ts.server {
10221021 PostEnd
10231022 }
10241023
1025- interface ILineIndexWalker {
1024+ export interface ILineIndexWalker {
10261025 goSubtree : boolean ;
10271026 done : boolean ;
10281027 leaf ( relativeStart : number , relativeLength : number , lineCollection : LineLeaf ) : void ;
@@ -1248,7 +1247,7 @@ module ts.server {
12481247 }
12491248
12501249 // text change information
1251- class TextChange {
1250+ export class TextChange {
12521251 constructor ( public pos : number , public deleteLen : number , public insertedText ?: string ) {
12531252 }
12541253
@@ -1371,7 +1370,7 @@ module ts.server {
13711370 }
13721371 }
13731372
1374- class LineIndexSnapshot implements ts . IScriptSnapshot {
1373+ export class LineIndexSnapshot implements ts . IScriptSnapshot {
13751374 index : LineIndex ;
13761375 changesSincePreviousVersion : TextChange [ ] = [ ] ;
13771376
@@ -1605,7 +1604,7 @@ module ts.server {
16051604 }
16061605 }
16071606
1608- class LineNode implements LineCollection {
1607+ export class LineNode implements LineCollection {
16091608 totalChars = 0 ;
16101609 totalLines = 0 ;
16111610 children : LineCollection [ ] = [ ] ;
@@ -1891,7 +1890,7 @@ module ts.server {
18911890 }
18921891 }
18931892
1894- class LineLeaf implements LineCollection {
1893+ export class LineLeaf implements LineCollection {
18951894 udata : any ;
18961895
18971896 constructor ( public text : string ) {
0 commit comments