From 1bf3ba85a266384e3bdad8e4fe8d332dcbf090e9 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Tue, 25 Nov 2014 00:23:03 -0800 Subject: [PATCH] Initialize enum in a way that makes it clearer that it is a Flags-enum. --- src/compiler/types.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 68d74385c03..ea0c8956ce8 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -281,10 +281,10 @@ module ts { export const enum ParserContextFlags { // Set if this node was parsed in strict mode. Used for grammar error checks, as well as // checking if the node can be reused in incremental settings. - ParsedInStrictModeContext = 0x1, - ParsedInDisallowInContext = 0x2, - ParsedInYieldContext = 0x4, - ParsedInGeneratorParameterContext = 0x8, + ParsedInStrictModeContext = 1 << 0, + ParsedInDisallowInContext = 1 << 1, + ParsedInYieldContext = 1 << 2, + ParsedInGeneratorParameterContext = 1 << 3, } export interface Node extends TextRange {