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
Mohamed Hegazy
42c05453bd
Add internal definitions to a diffrent .d.ts files
2014-12-15 21:09:57 -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
Yui T
25a6302b48
Move grammar checking: forStatement
2014-12-15 18:39:44 -08:00
Yui T
010745c371
Move grammar checking: forInStatement; there are still errors from incomplete migration
2014-12-15 18:28:24 -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
Yui T
e0e88adfc5
Move grammar checking: variableDeclaration, variableStatements; there are still erros from incomplete grammar migration
2014-12-15 18:10:35 -08:00
Mohamed Hegazy
8a87d51956
Do not use the file name in errors unless it exists
2014-12-15 17:32:11 -08:00
Yui T
ccff5efb73
Merge branch 'refactorGrammarCheck' of https://github.com/Microsoft/TypeScript into refactorGrammarCheck
...
Conflicts:
src/compiler/checker.ts
2014-12-15 17:24:37 -08:00
Yui T
20b7bb249e
Address code review
2014-12-15 17:23:33 -08:00
Yui T
5cb958ef43
Address code review
2014-12-15 17:16:22 -08:00
Daniel Rosenwasser
1f6cd941fd
Changed tests to error when actual contextual typing is broken.
2014-12-15 17:09:56 -08:00
Daniel Rosenwasser
e3848b98b1
Fixed bug where function expressions were not getting checked in template expressions.
2014-12-15 16:45:17 -08:00
Yui T
90333fe49b
Address code review
2014-12-15 16:43:35 -08:00
Yui T
f22adf6785
Move grammar checking: constructorDeclaration; there are still errors from incomplete grammar migration
2014-12-15 16:42:31 -08:00
Daniel Rosenwasser
17c822966d
Added tests for erroneous function expressions in both tagged/untagged template expressions.
2014-12-15 16:39:12 -08:00
Daniel Rosenwasser
0263d60071
Split contextual typing test for substitution expressions into two tests.
2014-12-15 16:14:35 -08:00
Yui T
bcf73a8207
Move grammar checking: enumDeclaration; there are still erros from incomplete grammar migration
2014-12-15 15:26:08 -08:00
Anders Hejlsberg
667e82fba2
Addressing CR feedback + Run fourslash tests with ES5 emit
2014-12-15 15:16:54 -08:00
Yui T
28a115ef37
Move grammar checking: breakStatement, continueStatement; there are still errors from incomplete grammar migration
2014-12-15 15:05:31 -08:00
Daniel Rosenwasser
e68c53f708
Separated fourslash test to two files.
2014-12-15 14:55:46 -08:00
Yui T
60eb37df94
Move grammar checking: declare keyword in checkGrammarModifier; there are still erros from incomplete grammar migration
2014-12-15 14:51:52 -08:00
Yui T
d584737ea2
Address code review
2014-12-15 14:47:09 -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
Yui T
e49470bf86
Address code review
2014-12-15 14:16:11 -08:00
Daniel Rosenwasser
e43e5c3cde
Removed unnecessary case; substitution expressions only occur in TemplateSpans.
2014-12-15 14:13:31 -08:00
Daniel Rosenwasser
b65a422c7a
Fixed contextual typing for tagged template expressions.
2014-12-15 14:11:21 -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
Yui T
aa59b4d3f1
Move grammar checking: yieldExpression; there are still error from incomplete grammar migration.
2014-12-15 10:47:42 -08:00
Yui T
896f172d72
Move grammar checking: wihtStatement; there are still errors from incomplete grammar migration
2014-12-15 10:15:46 -08:00
Yui T
5d91394713
Movev grammar checking: typeReference; there are still errors from incomplet grammar migration
2014-12-15 10:15:12 -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
Yui T
98cb805f13
Move grammar check: throwStatement; there are still errors from incomplete grammar migration
2014-12-14 22:50:58 -08:00
Cyrus Najmabadi
0ec9f0d3bb
Check tree invariants during fourslash tests.
2014-12-14 22:43:26 -08:00
Yui T
b388eb3c2a
Move grammar checking: taggedTemplateExpression
2014-12-14 21:12:14 -08:00
Yui T
a4f17b1417
Move grammar checking: switchStatement; there are still errors from incomplete grammar migration
2014-12-14 19:57:12 -08:00
Yui T
1cc0d184bb
Move grammar checking: shorthandPropertyAssignment; Add more parser test; there are still errors from incomplete migration
2014-12-14 19:14:02 -08:00
Yui T
eadcc06fa3
Move grammar checking: returnStatement; there are still error from incomplet grammar migration
2014-12-14 15:18:54 -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