Cyrus Najmabadi
38a54bc0b9
Fix incremental parsing issue.
...
We were moving a method-declaration called "constructor" into a class. This is incorrect
as that same code should be parsed as a constructor-declaration now that it is in the
class context.
2015-06-18 14:16:00 -07:00
Cyrus Najmabadi
ec9e461869
Remove 'strict mode' from parsing and checking, and make it purely something purely checked at bind time.
2015-06-15 17:31:15 -07:00
Jason Freeman
635a773186
Unite ParsingContext.ModuleElements and ParsingContext.BlockStatements
2015-06-10 16:41:48 -07:00
Yui T
c51983df3c
Address code review
2015-03-16 15:48:03 -07:00
Yui T
0672923323
Parse classDeclaration in strict mode code for ES6
2015-03-12 15:19:45 -07:00
Cyrus Najmabadi
62d304b069
Preserve newlines for property access expressions on multiple lines.
2015-03-05 02:31:55 -08:00
Cyrus Najmabadi
fc229368d1
Include the binary expression's operator in the AST.
2015-02-20 18:56:42 -08:00
Cyrus Najmabadi
ea4e3de91c
Remove unnecessary diagnostics split on SourceFile.
2015-02-05 13:38:11 -08:00
Cyrus Najmabadi
95702a89a7
Fix spelling of 'Filename' to be 'FileName'.
2015-02-03 16:08:46 -08:00
Vladimir Matveev
288e38fa36
merge with master
2015-02-03 11:26:39 -08:00
Mohamed Hegazy
d6bd9f74d2
Merge branch 'master' into LSAPICleanup
2015-02-02 18:49:13 -08:00
Cyrus Najmabadi
5343336763
Baseline updates now that we no longer have early errors.
2015-02-02 15:15:54 -08:00
Mohamed Hegazy
66f8257fc8
Remove isOpen from souceFile and LanugageServiceHost interfaces
2015-01-16 21:23:51 -08:00
Vladimir Matveev
c40977c5fb
move getSyntacticDiagnostics out of SourceFile
2015-01-16 12:32:37 -08:00
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
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