Skip to content

Commit d5cfb9d

Browse files
Merge pull request #1123 from Microsoft/allowIn
Keep track of 'disallowIn' as an ambient parser flag instead of having to pass it along everywhere.
2 parents c3131e2 + ba11e68 commit d5cfb9d

File tree

3 files changed

+320
-221
lines changed

3 files changed

+320
-221
lines changed

src/services/syntax/constants.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ module TypeScript {
1515
// only be used by the incremental parser if it is parsed in the same strict context as before.
1616
// last masks off the part of the int
1717
//
18-
// The width of the node is stored in the remainder of the int. This allows us up to 512MB
19-
// for a node by using all 29 bits. However, in the common case, we'll use less than 29 bits
18+
// The width of the node is stored in the remainder of the int. This allows us up to 256MB
19+
// for a node by using all 28 bits. However, in the common case, we'll use less than 28 bits
2020
// for the width. Thus, the info will be stored in a single int in chakra.
2121
NodeDataComputed = 0x00000001, // 0000 0000 0000 0000 0000 0000 0000 0001
2222
NodeIncrementallyUnusableMask = 0x00000002, // 0000 0000 0000 0000 0000 0000 0000 0010
2323
NodeParsedInStrictModeMask = 0x00000004, // 0000 0000 0000 0000 0000 0000 0000 0100
24-
NodeFullWidthShift = 3, // 1111 1111 1111 1111 1111 1111 1111 1000
24+
NodeParsedInDisallowInMask = 0x00000008, // 0000 0000 0000 0000 0000 0000 0000 1000
25+
NodeFullWidthShift = 4, // 1111 1111 1111 1111 1111 1111 1111 0000
2526
}
2627
}

0 commit comments

Comments
 (0)