Add support for incremental parsing.

Right now the entrypoint just causes a full parse to happen.  But the LS code is
cleaned up to take advantage of it appropriately.

This will not be checked in until all the incremental parsing work is complete.
getCombinedNodeFlags sounds good to me.

         -- Cyrus

From: Anders Hejlsberg [mailto:notifications@github.com]
Sent: Tuesday, December 16, 2014 6:08 PM
To: Microsoft/TypeScript
Cc: Cyrus Najmabadi
Subject: Re: [TypeScript] Add support for incremental parsing. (#1434)


In src/compiler/binder.ts<https://github.com/Microsoft/TypeScript/pull/1434#discussion-diff-21948520>:

> @@ -391,7 +390,7 @@ module ts {

>                      if (isBindingPattern((<Declaration>node).name)) {

>                          bindChildren(node, 0, /*isBlockScopeContainer*/ false);

>                      }

> -                    else if (node.flags & NodeFlags.BlockScoped) {

> +                    else if (getNodeFlags(node) & NodeFlags.BlockScoped) {

I'm thinking getAggregateNodeFlags or getCombinedNodeFlags.

—
Reply to this email directly or view it on GitHub<https://github.com/Microsoft/TypeScript/pull/1434/files#r21948520>.