Commit Graph
100 Commits
Author SHA1 Message Date
Cyrus Najmabadi 4545549e07 Disable incremental by default before merging into master. 2014-12-17 12:41:08 -08:00
Cyrus Najmabadi bd76ebd02b Enable incremental parsing by default.
Provide flag to disable incremental parsing if necessary.
2014-12-14 12:39:11 -08:00
Cyrus Najmabadi e1e5243335 Merge branch 'typingHighFidelity' into sourceFileUpdate
Conflicts:
	tests/cases/unittests/incrementalParser.ts
2014-12-14 12:06:26 -08:00
Cyrus Najmabadi f5d622f0c9 Move test helpers into the harness Utils module. 2014-12-14 10:57:34 -08:00
Cyrus Najmabadi d5c6636854 Parse function and variable declarations uniformly, whether they're at teh top level, or inside a method.
This is necessary for incremental parsing correctness, as the incremental parser
will attempt to reuse these types of nodes in both contexts, and we much ensure
it creates the same trees you would get if you were parsing normally.
2014-12-12 03:52:01 -08:00
Cyrus Najmabadi 8820ca0596 Change the error-bit to be a node-flag and not a parser context flag.
Do not reuse nodes with errors in them.  We need to reparse them to make
sure we produce the right errors the second time around.
2014-12-12 03:25:49 -08:00
Cyrus Najmabadi 60c62e5b6b Don't consume nodes during calls to isListElement. 2014-12-12 03:06:05 -08:00
Cyrus Najmabadi 9c0e4211bc Properly adjust nodes while walking down the tree. 2014-12-12 02:34:53 -08:00
Cyrus Najmabadi 2f833d5f97 Provide a way for tests to try out incremental parsing. 2014-12-12 02:21:45 -08:00
Cyrus Najmabadi f218ce7684 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	tests/baselines/reference/APISample_node_compile.js
	tests/baselines/reference/APISample_node_compile.types
	tests/baselines/reference/APISample_standalone_compile.js
	tests/baselines/reference/APISample_standalone_compile.types
2014-12-12 00:52:07 -08:00
Cyrus Najmabadi 402c57cf7e Adding classification test. 2014-12-11 17:04:21 -08:00
Cyrus Najmabadi fbeb7dd75e Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
Conflicts:
	src/services/outliningElementsCollector.ts
2014-12-11 15:16:46 -08:00
Cyrus Najmabadi ba0fd4453d Add additional incremental tests. 2014-12-10 23:04:13 -08:00
Cyrus Najmabadi ee828dc1da More incremental parser tests. 2014-12-10 19:15:44 -08:00
Cyrus Najmabadi 563b234240 Incremental parser tests should verify the same set of diagnostics are produced. 2014-12-10 19:07:36 -08:00
Cyrus Najmabadi 888b88ee43 Move textSpan and textChangeRange impls to the compiler layer. 2014-12-10 14:36:37 -08:00
Cyrus Najmabadi c2d4cd5887 Move TextSpan into the compiler layer. 2014-12-10 13:45:08 -08:00
Cyrus Najmabadi 5bd49fec1d Initial entrypoint in SourceFile for the LS to call to peform 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.
2014-12-10 11:45:33 -08:00
Cyrus Najmabadi 1170a1c436 Only set parents for parse trees in the LS for the syntactic trees.
we don't need this for the semantic trees because the compiler will set them all during
the binding.
2014-12-10 10:09:40 -08:00
Cyrus Najmabadi dd2c869d7b Use chai asserts. 2014-12-09 19:49:40 -08:00
Cyrus Najmabadi aa30ac8a9c Add incremental test. 2014-12-09 19:37:26 -08:00
Cyrus Najmabadi 2a845726ab Add incremental test. 2014-12-09 18:36:32 -08:00
Cyrus Najmabadi 3c35b9097f Add incremental test. 2014-12-09 18:35:23 -08:00
Cyrus Najmabadi 58d36afbec Add incremental test. 2014-12-09 18:32:43 -08:00
Cyrus Najmabadi 3928f743ac Add incremental test. 2014-12-09 18:30:40 -08:00
Cyrus Najmabadi 01ead476cf Add incremental test. 2014-12-09 18:29:18 -08:00
Cyrus Najmabadi b8bb8e9998 Add incremental test. 2014-12-09 18:27:59 -08:00
Cyrus Najmabadi 467d303c67 Add incremental test. 2014-12-09 18:26:50 -08:00
Cyrus Najmabadi dad3faecf3 Add incremental test. 2014-12-09 18:25:10 -08:00
Cyrus Najmabadi c489c4fcfe Add incremental test. 2014-12-09 18:24:16 -08:00
Cyrus Najmabadi 9b53947d51 Add incremental test. 2014-12-09 18:23:25 -08:00
Cyrus Najmabadi afec0fb9f0 Add incremental test. 2014-12-09 18:17:11 -08:00
Cyrus Najmabadi 197b62e92a Add incremental test. 2014-12-09 18:13:09 -08:00
Cyrus Najmabadi 025dd23c1b Add incremental test. 2014-12-09 18:11:56 -08:00
Cyrus Najmabadi 78c4b92216 Add incremental test. 2014-12-09 18:10:15 -08:00
Cyrus Najmabadi d6fa98d00b Add incremental test. 2014-12-09 18:07:48 -08:00
Cyrus Najmabadi ec13fbee96 Add incremental test. 2014-12-09 18:05:45 -08:00
Cyrus Najmabadi 3e70073211 Add incremental test. 2014-12-09 18:03:52 -08:00
Cyrus Najmabadi 18f9acb7fc Add incremental test. 2014-12-09 18:00:08 -08:00
Cyrus Najmabadi b8942992a0 Add incremental test. 2014-12-09 17:58:23 -08:00
Cyrus Najmabadi 418c0d9d91 Add incremental test. 2014-12-09 17:57:13 -08:00
Cyrus Najmabadi 5b2778c200 Add incremental test. 2014-12-09 17:45:50 -08:00
Cyrus Najmabadi 666363a7de Add incremental test. 2014-12-09 17:42:36 -08:00
Cyrus Najmabadi e564fa5c9d Add incremental test. 2014-12-09 17:37:17 -08:00
Cyrus Najmabadi c307d306c0 Add incremental test. 2014-12-09 17:34:26 -08:00
Cyrus Najmabadi c436ff47a1 Add incremental test. 2014-12-09 17:33:15 -08:00
Cyrus Najmabadi c7fcbb9f6b Add incremental test. 2014-12-09 17:29:52 -08:00
Cyrus Najmabadi 1cd2fb4333 Add incremental test. 2014-12-09 17:23:14 -08:00
Cyrus Najmabadi c482a9e0e3 Add incremental test. 2014-12-09 17:22:15 -08:00
Cyrus Najmabadi 6058dbbc2f Add incremental test. 2014-12-09 17:21:30 -08:00