3091 Commits

Author SHA1 Message Date
Cyrus Najmabadi
fa4fab8a15 Change check cadence. 2014-12-15 19:37:15 -08:00
Cyrus Najmabadi
59c901556b Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/harness/fourslash.ts
2014-12-15 00:46:48 -08:00
CyrusNajmabadi
5237ed7bed Merge pull request #1482 from Microsoft/typingHighFidelity
Move test helpers into the harness Utils module.
2014-12-15 00:33:25 -08:00
Cyrus Najmabadi
b09e92e848 Up timeout to 20 seconds.
A specific test "genericRespecialization1" takes quite some time on travis (though only a couple
of seconds locally).
2014-12-15 00:24:03 -08:00
Cyrus Najmabadi
14883cb18e Merge branch 'master' into typingHighFidelity 2014-12-14 23:46:05 -08:00
Cyrus Najmabadi
115a2d33b7 Update timeout to 6 seconds. 2014-12-14 23:23:18 -08:00
Cyrus Najmabadi
1bfe500897 Formatting. 2014-12-14 23:22:19 -08:00
CyrusNajmabadi
c3ad5b2b3a Merge pull request #1485 from Microsoft/noDebuggerInTests
Remove calls to "debugger;" in our fourslash tests.
2014-12-14 23:05:25 -08:00
Cyrus Najmabadi
0ec9f0d3bb Check tree invariants during fourslash tests. 2014-12-14 22:43:26 -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
3478099a85 Add incremental parsing LS test. 2014-12-14 12:30:02 -08:00
Cyrus Najmabadi
872df4dda4 Merge branch 'noDebuggerInTests' into sourceFileUpdate 2014-12-14 12:23:05 -08:00
Cyrus Najmabadi
b4a21686c1 Remove calls to "debugger;" in our fourslash tests. 2014-12-14 12:22:36 -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
2bb0eb604b Ensure the 'hasParseErrors' bit is the same between trees. 2014-12-14 12:04:18 -08:00
Cyrus Najmabadi
0e01e48d0e Always run all fourslash tests in high fidelity typing mode.
We want to verify after every edit that our incremental data is correct.
2014-12-14 11:34:15 -08:00
Cyrus Najmabadi
6d9bfda3e5 Check post edit invariants after every edit. 2014-12-14 11:20:50 -08:00
Cyrus Najmabadi
bd4aed25da Don't convert the tree to JSON before checking it. Just check it directly. 2014-12-14 11:16:50 -08:00
Cyrus Najmabadi
f5d622f0c9 Move test helpers into the harness Utils module. 2014-12-14 10:57:34 -08:00
CyrusNajmabadi
fbfb94f776 Merge pull request #1470 from Microsoft/flagAggregation
Make utility method names clearer.
2014-12-12 15:50:03 -08:00
Cyrus Najmabadi
ea3e509154 Make utility mehtod names clearer. 2014-12-12 15:29:52 -08:00
Cyrus Najmabadi
e259ee9f8f Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/utilities.ts
2014-12-12 15:15:37 -08:00
Cyrus Najmabadi
c5b87e9070 Merge branch 'master' into sourceFileUpdate 2014-12-12 15:06:45 -08:00
Cyrus Najmabadi
b38b5fd1b5 Merge branch 'master' into funcDeclsInBlocks 2014-12-12 14:57:34 -08:00
CyrusNajmabadi
7d2009ab64 Merge pull request #1469 from Microsoft/262baselines
Simplify 262 baselines.
2014-12-12 14:46:28 -08:00
CyrusNajmabadi
102cb2f406 Merge pull request #1468 from Microsoft/LKG
Update LKG.
2014-12-12 14:34:24 -08:00
Cyrus Najmabadi
9f59cf6e19 Simplify 262 baselines. 2014-12-12 14:26:31 -08:00
Cyrus Najmabadi
a163cb965c Merge branch 'master' into funcDeclsInBlocks 2014-12-12 14:18:28 -08:00
Cyrus Najmabadi
cf8afc3124 Update LKG. 2014-12-12 14:16:35 -08:00
Cyrus Najmabadi
760eb9b8e0 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
	src/compiler/types.ts
	src/compiler/utilities.ts
2014-12-12 14:12:27 -08:00
Cyrus Najmabadi
ffdddd53af Merge branch 'master' into funcDeclsInBlocks
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
2014-12-12 14:05:09 -08:00
CyrusNajmabadi
dacbd982cf Merge pull request #1467 from Microsoft/postEditInvariants
Resurrect the post edit invariants checking for fourslash.
2014-12-12 13:52:19 -08:00
CyrusNajmabadi
126aaf949d Merge pull request #1465 from Microsoft/labeledStatement
Avoid lookahead when parsing a statement.
2014-12-12 13:45:06 -08:00
Cyrus Najmabadi
183c80a81a Merge branch 'master' into postEditInvariants
Conflicts:
	src/harness/test262Runner.ts
2014-12-12 13:42:39 -08:00
Cyrus Najmabadi
26badc686f Avoid lookahead when parsing a statement.
If a statement started with an identifier, then we'd normally lookahead to see if the next token
was a colon.  Lookahead is expensive (as it has to rescan tokens).  Instead, we do the same thing
we do for arrow-functions.  We just parse out the identifier, and afterwards we check if there is
a colon as the current token.  Now, no lookahead is required.
2014-12-12 13:32:54 -08:00
Cyrus Najmabadi
f6aaa84146 In Fourslash: Compare ASTs for files produced incrementally versus files produced with a full parse. 2014-12-12 13:26:43 -08:00
Cyrus Najmabadi
0aa3f6e607 Rename some locals. 2014-12-12 13:09:50 -08:00
Cyrus Najmabadi
6ff58e3028 Don't emit error flags in the 262 baselines unless the node actually had an error.
This helps reduce clutter.
2014-12-12 12:41:59 -08:00
Cyrus Najmabadi
f8dd19ed1c Resurrect the post edit invariants checking for fourslash. 2014-12-12 12:01:27 -08:00
Cyrus Najmabadi
a988283988 Merge branch 'master' into sourceFileUpdate 2014-12-12 11:44:10 -08:00
CyrusNajmabadi
7b528ddd2b Merge pull request #1464 from Microsoft/void0
Properly emit 'void 0' when emitting destructuring assignments.
2014-12-12 11:36:47 -08:00
Cyrus Najmabadi
83f0c91999 Properly emit 'void 0' when emitting destructuring assignments. 2014-12-12 11:28:05 -08:00
Mohamed Hegazy
90a9b3472a Merge pull request #1460 from Arnavion/compilefile-fail-task-on-error
Actually fail the surrounding jake task on errors in compileFile()
2014-12-12 09:02:09 -08:00
Arnavion
f6fd263cbd Actually fail the surrounding jake task on errors in compileFile() 2014-12-12 08:49:21 -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
e32d030144 Update the source file positions as well. 2014-12-12 02:38:07 -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