@@ -9,7 +9,7 @@ module ts {
99 }
1010
1111 // token > SyntaxKind.Identifer => token is a keyword
12- export enum SyntaxKind {
12+ export const enum SyntaxKind {
1313 Unknown ,
1414 EndOfFileToken ,
1515 SingleLineCommentTrivia ,
@@ -249,7 +249,7 @@ module ts {
249249 LastTemplateToken = TemplateTail
250250 }
251251
252- export enum NodeFlags {
252+ export const enum NodeFlags {
253253 Export = 0x00000001 , // Declarations
254254 Ambient = 0x00000002 , // Declarations
255255 QuestionMark = 0x00000004 , // Parameter/Property/Method
@@ -722,7 +722,7 @@ module ts {
722722 trackSymbol ( symbol : Symbol , enclosingDeclaration ?: Node , meaning ?: SymbolFlags ) : void ;
723723 }
724724
725- export enum TypeFormatFlags {
725+ export const enum TypeFormatFlags {
726726 None = 0x00000000 ,
727727 WriteArrayAsGenericType = 0x00000001 , // Write Array<T> instead T[]
728728 UseTypeOfFunction = 0x00000002 , // Write typeof instead of function type literal
@@ -733,7 +733,7 @@ module ts {
733733 InElementType = 0x00000040 , // Writing an array or union element type
734734 }
735735
736- export enum SymbolFormatFlags {
736+ export const enum SymbolFormatFlags {
737737 None = 0x00000000 ,
738738 WriteTypeParametersOrArguments = 0x00000001 , // Write symbols's type argument if it is instantiated symbol
739739 // eg. class C<T> { p: T } <-- Show p as C<T>.p here
@@ -744,7 +744,7 @@ module ts {
744744 // When this flag is specified m.c will be used to refer to the class instead of alias symbol x
745745 }
746746
747- export enum SymbolAccessibility {
747+ export const enum SymbolAccessibility {
748748 Accessible ,
749749 NotAccessible ,
750750 CannotBeNamed
@@ -778,7 +778,7 @@ module ts {
778778 hasEarlyErrors ( sourceFile ?: SourceFile ) : boolean ;
779779 }
780780
781- export enum SymbolFlags {
781+ export const enum SymbolFlags {
782782 FunctionScopedVariable = 0x00000001 , // Variable (var) or parameter
783783 BlockScopedVariable = 0x00000002 , // A block-scoped variable (let or const)
784784 Property = 0x00000004 , // Property or enum member
@@ -890,7 +890,7 @@ module ts {
890890 [ index : string ] : Symbol ;
891891 }
892892
893- export enum NodeCheckFlags {
893+ export const enum NodeCheckFlags {
894894 TypeChecked = 0x00000001 , // Node has been type checked
895895 LexicalThis = 0x00000002 , // Lexical 'this' reference
896896 CaptureThis = 0x00000004 , // Lexical 'this' used in body
@@ -915,7 +915,7 @@ module ts {
915915 assignmentChecks ?: Map < boolean > ; // Cache of assignment checks
916916 }
917917
918- export enum TypeFlags {
918+ export const enum TypeFlags {
919919 Any = 0x00000001 ,
920920 String = 0x00000002 ,
921921 Number = 0x00000004 ,
@@ -1012,7 +1012,7 @@ module ts {
10121012 mapper ?: TypeMapper ; // Instantiation mapper
10131013 }
10141014
1015- export enum SignatureKind {
1015+ export const enum SignatureKind {
10161016 Call ,
10171017 Construct ,
10181018 }
@@ -1032,7 +1032,7 @@ module ts {
10321032 isolatedSignatureType ?: ObjectType ; // A manufactured type that just contains the signature for purposes of signature comparison
10331033 }
10341034
1035- export enum IndexKind {
1035+ export const enum IndexKind {
10361036 String ,
10371037 Number ,
10381038 }
@@ -1112,7 +1112,7 @@ module ts {
11121112 [ option : string ] : string | number | boolean ;
11131113 }
11141114
1115- export enum ModuleKind {
1115+ export const enum ModuleKind {
11161116 None ,
11171117 CommonJS ,
11181118 AMD ,
@@ -1127,7 +1127,7 @@ module ts {
11271127 }
11281128
11291129
1130- export enum ScriptTarget {
1130+ export const enum ScriptTarget {
11311131 ES3 ,
11321132 ES5 ,
11331133 ES6 ,
@@ -1149,7 +1149,7 @@ module ts {
11491149 error ?: DiagnosticMessage ; // The error given when the argument does not fit a customized 'type'.
11501150 }
11511151
1152- export enum CharacterCodes {
1152+ export const enum CharacterCodes {
11531153 nullCharacter = 0 ,
11541154 maxAsciiCharacter = 0x7F ,
11551155
0 commit comments