3117 Commits

Author SHA1 Message Date
Cyrus Najmabadi
7fc343eb43 Fix broken enum value alignment. 2014-12-16 16:27:26 -08:00
Cyrus Najmabadi
f3ce5d763c CR feedback. 2014-12-16 16:27:14 -08:00
Cyrus Najmabadi
b73128c50f CR feedback. 2014-12-16 16:17:48 -08:00
Cyrus Najmabadi
97a6abcc07 CR feedback. 2014-12-16 16:12:14 -08:00
Cyrus Najmabadi
32729b1379 Merge branch 'master' into sourceFileUpdate 2014-12-16 12:03:21 -08:00
Cyrus Najmabadi
c9ee88e5c4 Adding incremental test. 2014-12-16 11:58:47 -08:00
Mohamed Hegazy
5c4c08a667 Merge pull request #1500 from Arnavion/exec-process-stderr-number
Fixed "TypeError: invalid data" when executables run by exec exited with non-zero code.
2014-12-16 10:09:43 -08:00
Cyrus Najmabadi
0a8744e841 Add helper method to reduce so many double negatives in the code. 2014-12-16 03:19:13 -08:00
Cyrus Najmabadi
8917e96663 Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
	src/compiler/utilities.ts
2014-12-16 03:12:31 -08:00
Cyrus Najmabadi
935ba82efd Don't check container invariants. They don't hold true in incremental scenarios. 2014-12-16 03:08:29 -08:00
Cyrus Najmabadi
6326b9d51f Merge branch 'master' into sourceFileUpdate 2014-12-16 02:59:05 -08:00
Cyrus Najmabadi
592ad476a8 Reduce unnecessary arrow function allocations. 2014-12-16 02:53:58 -08:00
Cyrus Najmabadi
c7bb0a5ae6 Don't store variable statement flags on its variable declaration children. 2014-12-16 02:50:38 -08:00
Arnavion
f042044fce Fixed "TypeError: invalid data" when executables run by exec exited with non-zero code.
The original error was because process.stderr only allows writing Strings or Buffers, but status is a Number.

Also, the message parameter of the "error" handler is just the amalgam of all output written to stderr. This is already logged by the "stderr" handler, so there's no need to write it to process.stderr again.
2014-12-16 02:45:17 -08:00
Vladimir Matveev
59c73c5f34 Merge pull request #1466 from Microsoft/linked_imports
defer decision whether import used on the right side of import declarati...
2014-12-16 00:46:26 -08:00
Vladimir Matveev
5b38cb9a69 harden 'get import declaration' logic 2014-12-16 00:34:51 -08:00
Cyrus Najmabadi
fbcf9c89c6 Merge branch 'master' into funcDeclsInBlocks 2014-12-15 22:00:47 -08:00
CyrusNajmabadi
1eba8db465 Merge pull request #1498 from Microsoft/bindingElementContxt
Do not pass context flags downward while parsing binding elements.
2014-12-15 22:00:26 -08:00
Cyrus Najmabadi
e8a1056a38 Merge branch 'bindingElementContxt' into funcDeclsInBlocks 2014-12-15 21:48:35 -08:00
Cyrus Najmabadi
30f9a5ca2a Do not pass context flags downward while parsing binding elements.
This prevents an unnecessary allocation, simplifies parsing code, and prevents
an issue where parsing depends on context flags not stored in the final tree.
This is an issue for incremental parsing that can lead to nodes being reused
inappropriately.
2014-12-15 21:41:02 -08:00
Cyrus Najmabadi
41e59824fb Merge branch 'master' into funcDeclsInBlocks 2014-12-15 20:50:48 -08:00
Cyrus Najmabadi
fa4fab8a15 Change check cadence. 2014-12-15 19:37:15 -08:00
CyrusNajmabadi
539300bc5a Merge pull request #1496 from Microsoft/bindingContainers
Simplify how we set container.nextContainer now that we don't double recurse during binding.
2014-12-15 18:26:19 -08:00
Cyrus Najmabadi
cb8d2f28ae Simplify how we set container.nextContainer now that we don't double recurse. 2014-12-15 14:43:31 -08:00
CyrusNajmabadi
9bb6cee923 Merge pull request #1491 from Microsoft/binderDoubleRecurse
Simplify the binder so it does not need to double recurse down constructor parameter nodes.
2014-12-15 13:59:18 -08:00
Cyrus Najmabadi
d3bfed13f8 Simplify the binder so it does not need to double recurse down constructor parameter nodes. 2014-12-15 13:23:06 -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