@@ -1019,11 +1019,11 @@ module ts {
10191019 highlightSpans : HighlightSpan [ ] ;
10201020 }
10211021
1022- export class DocumentHighlightKind {
1023- public static none = "none" ;
1024- public static definition = "definition" ;
1025- public static reference = "reference" ;
1026- public static writtenReference = "writtenReference" ;
1022+ export module DocumentHighlightKind {
1023+ export const none = "none" ;
1024+ export const definition = "definition" ;
1025+ export const reference = "reference" ;
1026+ export const writtenReference = "writtenReference" ;
10271027 }
10281028
10291029 export interface HighlightSpan {
@@ -1335,92 +1335,92 @@ module ts {
13351335 }
13361336
13371337 // TODO: move these to enums
1338- export class ScriptElementKind {
1339- static unknown = "" ;
1340- static warning = "warning" ;
1338+ export module ScriptElementKind {
1339+ export const unknown = "" ;
1340+ export const warning = "warning" ;
13411341
13421342 // predefined type (void) or keyword (class)
1343- static keyword = "keyword" ;
1343+ export const keyword = "keyword" ;
13441344
13451345 // top level script node
1346- static scriptElement = "script" ;
1346+ export const scriptElement = "script" ;
13471347
13481348 // module foo {}
1349- static moduleElement = "module" ;
1349+ export const moduleElement = "module" ;
13501350
13511351 // class X {}
1352- static classElement = "class" ;
1352+ export const classElement = "class" ;
13531353
13541354 // interface Y {}
1355- static interfaceElement = "interface" ;
1355+ export const interfaceElement = "interface" ;
13561356
13571357 // type T = ...
1358- static typeElement = "type" ;
1358+ export const typeElement = "type" ;
13591359
13601360 // enum E
1361- static enumElement = "enum" ;
1361+ export const enumElement = "enum" ;
13621362
13631363 // Inside module and script only
13641364 // let v = ..
1365- static variableElement = "var" ;
1365+ export const variableElement = "var" ;
13661366
13671367 // Inside function
1368- static localVariableElement = "local var" ;
1368+ export const localVariableElement = "local var" ;
13691369
13701370 // Inside module and script only
13711371 // function f() { }
1372- static functionElement = "function" ;
1372+ export const functionElement = "function" ;
13731373
13741374 // Inside function
1375- static localFunctionElement = "local function" ;
1375+ export const localFunctionElement = "local function" ;
13761376
13771377 // class X { [public|private]* foo() {} }
1378- static memberFunctionElement = "method" ;
1378+ export const memberFunctionElement = "method" ;
13791379
13801380 // class X { [public|private]* [get|set] foo:number; }
1381- static memberGetAccessorElement = "getter" ;
1382- static memberSetAccessorElement = "setter" ;
1381+ export const memberGetAccessorElement = "getter" ;
1382+ export const memberSetAccessorElement = "setter" ;
13831383
13841384 // class X { [public|private]* foo:number; }
13851385 // interface Y { foo:number; }
1386- static memberVariableElement = "property" ;
1386+ export const memberVariableElement = "property" ;
13871387
13881388 // class X { constructor() { } }
1389- static constructorImplementationElement = "constructor" ;
1389+ export const constructorImplementationElement = "constructor" ;
13901390
13911391 // interface Y { ():number; }
1392- static callSignatureElement = "call" ;
1392+ export const callSignatureElement = "call" ;
13931393
13941394 // interface Y { []:number; }
1395- static indexSignatureElement = "index" ;
1395+ export const indexSignatureElement = "index" ;
13961396
13971397 // interface Y { new():Y; }
1398- static constructSignatureElement = "construct" ;
1398+ export const constructSignatureElement = "construct" ;
13991399
14001400 // function foo(*Y*: string)
1401- static parameterElement = "parameter" ;
1401+ export const parameterElement = "parameter" ;
14021402
1403- static typeParameterElement = "type parameter" ;
1403+ export const typeParameterElement = "type parameter" ;
14041404
1405- static primitiveType = "primitive type" ;
1405+ export const primitiveType = "primitive type" ;
14061406
1407- static label = "label" ;
1407+ export const label = "label" ;
14081408
1409- static alias = "alias" ;
1409+ export const alias = "alias" ;
14101410
1411- static constElement = "const" ;
1411+ export const constElement = "const" ;
14121412
1413- static letElement = "let" ;
1413+ export const letElement = "let" ;
14141414 }
14151415
1416- export class ScriptElementKindModifier {
1417- static none = "" ;
1418- static publicMemberModifier = "public" ;
1419- static privateMemberModifier = "private" ;
1420- static protectedMemberModifier = "protected" ;
1421- static exportedModifier = "export" ;
1422- static ambientModifier = "declare" ;
1423- static staticModifier = "static" ;
1416+ export module ScriptElementKindModifier {
1417+ export const none = "" ;
1418+ export const publicMemberModifier = "public" ;
1419+ export const privateMemberModifier = "private" ;
1420+ export const protectedMemberModifier = "protected" ;
1421+ export const exportedModifier = "export" ;
1422+ export const ambientModifier = "declare" ;
1423+ export const staticModifier = "static" ;
14241424 }
14251425
14261426 export class ClassificationTypeNames {
0 commit comments