Cyrus Najmabadi
f1a2e41a8a
Sort diagnostics in our baseline output.
...
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.
This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00
Jason Freeman
ab33a65d30
Fix issue #1503 with modules and imports sharing a name
2014-12-16 14:59:21 -08:00
Yui T
a3e8b6c6d7
Move grammar checking: interfaceDeclaration-remove it from checkModifiers in parser; there are still errors from incomplete grammar migration
2014-12-16 13:47:57 -08:00
Yui T
406576f1fc
Move grammar checking: propertyDeclaration, propertySignature; there are still errors from incomplete grammar migration
2014-12-16 13:36:00 -08:00
Yui T
c525877aaa
Move grammar checking: moduleDeclaration; there are still errors from incomplete grammar migration
2014-12-16 13:35:31 -08:00
Yui T
003515655e
Move grammar checking: methodDeclaration; there are still erros from incomplete grammar migration
2014-12-16 12:51:42 -08:00
Yui T
7a4d8cd8ee
Move grammar checking: setAccessor, getAccessor; there are still erros from incomplete grammar migration
2014-12-16 12:25:05 -08:00
Cyrus Najmabadi
c9ee88e5c4
Adding incremental test.
2014-12-16 11:58:47 -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
6326b9d51f
Merge branch 'master' into sourceFileUpdate
2014-12-16 02:59:05 -08:00
Cyrus Najmabadi
c7bb0a5ae6
Don't store variable statement flags on its variable declaration children.
2014-12-16 02:50:38 -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
Yui T
694771b2d7
Move grammar checking: functionDeclaration; there are still errors from incomplet grammar migration
2014-12-15 23:05:29 -08:00
Cyrus Najmabadi
41e59824fb
Merge branch 'master' into funcDeclsInBlocks
2014-12-15 20:50:48 -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
Yui T
e0e88adfc5
Move grammar checking: variableDeclaration, variableStatements; there are still erros from incomplete grammar migration
2014-12-15 18:10:35 -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
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
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
Daniel Rosenwasser
b65a422c7a
Fixed contextual typing for tagged template expressions.
2014-12-15 14:11:21 -08:00
Cyrus Najmabadi
14883cb18e
Merge branch 'master' into typingHighFidelity
2014-12-14 23:46:05 -08:00
Yui T
b388eb3c2a
Move grammar checking: taggedTemplateExpression
2014-12-14 21:12:14 -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
Cyrus Najmabadi
e1e5243335
Merge branch 'typingHighFidelity' into sourceFileUpdate
...
Conflicts:
tests/cases/unittests/incrementalParser.ts
2014-12-14 12:06:26 -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
Yui T
e852f3379c
Move grammar checking: prefixUnaryExpression; There are still error from incomplete migration
2014-12-14 11:29:54 -08:00
Yui T
94d4ac28f9
Move grammar checking: postfixUnaryExpression
2014-12-14 11:12:45 -08:00
Cyrus Najmabadi
f5d622f0c9
Move test helpers into the harness Utils module.
2014-12-14 10:57:34 -08:00
Anders Hejlsberg
b9db747117
Accepting new baselines.
2014-12-14 09:47:26 -08:00
Yui T
747eb7268d
Move garmmar checking: numericLiteral; there are still error from incomplete migration
2014-12-13 14:08:27 -08:00
Yui T
2cf51e4639
Move grammar checking: objectLiteralExpression; there are still error from incomplete grammar migration
2014-12-13 13:55:16 -08:00
Yui T
3903a65062
Move grammar check: InterfaceDeclaration, HeritageClause
2014-12-12 15:52:27 -08:00
Yui T
56cf566f89
Move grammar checking: functionExpression
2014-12-12 15:10:01 -08:00
Anders Hejlsberg
3e436c5047
Adding new tests
2014-12-12 14:34:12 -08:00
Anders Hejlsberg
b416cbc599
Merge branch 'master' into spreadAndRest
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/parser.ts
2014-12-12 14:32:53 -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
Yui T
afc04c8db8
Move type checking: elementAccessExpression; there are still errors from not moving other grammar checking into type checker
2014-12-12 13:16:19 -08:00
Yui T
00449d80a3
Merge disallow computed property grammar error; there are still errors from generator and the fact that other grammar check haven't moved yet
2014-12-12 12:47:19 -08:00
Vladimir Matveev
c24f75fd73
defer decision whether import used on the right side of import declaration should be considered referenced
2014-12-12 11:48:46 -08:00
Cyrus Najmabadi
a988283988
Merge branch 'master' into sourceFileUpdate
2014-12-12 11:44:10 -08:00
Cyrus Najmabadi
83f0c91999
Properly emit 'void 0' when emitting destructuring assignments.
2014-12-12 11:28:05 -08:00
Anders Hejlsberg
86a9c80ff8
Adding tests and accepting new baselines
2014-12-12 10:56:22 -08:00
Jason Freeman
8be44f111c
Don't quote the word 'generators' in error messages
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
2014-12-12 10:41:21 -08:00
Jason Freeman
867e2a8b6f
Disable computed properties in TypeScript 1.4
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
2014-12-12 10:35:01 -08:00
Vladimir Matveev
ed9234ed32
do not indent leading comments that attached to tokens with errors
2014-12-12 09:00:20 -08:00
Vladimir Matveev
6b438c22fd
added test for inherited indentation
2014-12-12 08:59:47 -08:00
Vladimir Matveev
59a31acca1
conditionals are now introduce indentation scope
2014-12-12 08:59:26 -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
Daniel Rosenwasser
854586e824
Merge branch 'release-1.4' into fixProcessDiagMessagesProbWith1.4Merge
...
Conflicts:
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
tests/cases/compiler/APISample_node_compile.ts
tests/cases/compiler/APISample_standalone_compile.ts
2014-12-12 00:09:23 -08:00
Daniel Rosenwasser
87b7ddd51b
Merge pull request #1453 from Microsoft/fixSysDependencyForDiagnostics
...
Fix sys dependency for processDiagnosticMessages.ts
2014-12-12 00:03:43 -08:00
Daniel Rosenwasser
c5943de3cd
Just temporarily removing the tests until we can get back into a good state.
2014-12-11 23:54:33 -08:00
Cyrus Najmabadi
0391e02fee
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/parser.ts
src/services/formatting/tokenSpan.ts
src/services/text.ts
2014-12-11 18:08:57 -08:00
CyrusNajmabadi
122d8a4d98
Merge pull request #1456 from Microsoft/mergeMarkers
...
Make the compiler resilient to encountering merge conflict markers in a source code file.
2014-12-11 18:04:25 -08:00
Jason Freeman
7f097140c9
Merge branch 'release-1.4'
2014-12-11 17:29:03 -08:00
Jason Freeman
06d7ef14cf
Don't quote the word 'generators' in error messages
2014-12-11 17:22:22 -08:00
Cyrus Najmabadi
402c57cf7e
Adding classification test.
2014-12-11 17:04:21 -08:00
Cyrus Najmabadi
7df3a407c2
Make the compiler resilient to encountering merge conflict markers in a source code file.
2014-12-11 16:56:10 -08:00
Jason Freeman
d385f2ebf4
Disable computed properties in TypeScript 1.4
2014-12-11 16:49:53 -08:00
Daniel Rosenwasser
47ed584d12
Re-add baselines.
2014-12-11 16:39:54 -08:00
Daniel Rosenwasser
cfca38f0af
Remove baselines.
2014-12-11 16:39:32 -08:00
Yui T
279aa39467
Move grammar checking: classDeclaration; there are still errors from checking declare keyword and grammar checking of moduleDeclaration
2014-12-11 16:26:27 -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
63dbb78d02
Merge branch 'master' into sourceFileUpdate
2014-12-11 15:07:49 -08:00
Cyrus Najmabadi
76df92cc78
Merge branch 'master' into funcDeclsInBlocks
2014-12-11 14:59:03 -08:00
Daniel Rosenwasser
d92d6379bd
Merge branch 'release-1.4' into mergeFor1.4ToMaster
...
Conflicts:
src/compiler/parser.ts
src/compiler/utilities.ts
src/harness/harness.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
tests/cases/compiler/APISample_node_compile.ts
tests/cases/compiler/APISample_standalone_compile.ts
2014-12-11 14:49:43 -08:00
Cyrus Najmabadi
b692ea9b66
Remove TryBlock and FinallyBlock.
...
They break the rule that syntactically identical constructs use the same syntax kind. This
prevents node reuse in incremental parsing.
2014-12-11 14:40:25 -08:00
Daniel Rosenwasser
036209a89e
Moved createCompilerHost into parser.ts
...
Conflicts:
src/compiler/tsc.ts
2014-12-11 14:11:01 -08:00
Daniel Rosenwasser
77d5d40d20
Fixed up baselines.
2014-12-11 14:02:07 -08:00
Mohamed Hegazy
b45ab580d5
Add tests for public declarations
2014-12-11 14:02:01 -08:00
Yui T
907d1d001b
Move grammar checking: callExpression, newExpression
2014-12-11 12:07:01 -08:00
Cyrus Najmabadi
12f8bfb687
Unify accessor declaration parsing.
2014-12-10 23:33:30 -08:00
Vladimir Matveev
997aadb902
Merge pull request #1437 from Microsoft/formatting_conditionals
...
conditionals are now introduce indentation scope
2014-12-10 23:28:54 -08:00
Cyrus Najmabadi
ba0fd4453d
Add additional incremental tests.
2014-12-10 23:04:13 -08:00
Cyrus Najmabadi
fe57f3d2e4
Support modifiers on object literal methods and accessors, and question tokens on object literal methods.
...
This makes parsing of these constructs the same whether they are in an object literal or a class.
This is important for incrementla parsing for knowing if we can reuse these nodes if we run
into them.
2014-12-10 22:30:40 -08:00
Vladimir Matveev
638518cae2
Merge pull request #1441 from Microsoft/dont_indent_comments_on_errors
...
do not indent leading comments that attached to tokens with errors
2014-12-10 22:02:15 -08:00
Vladimir Matveev
d69ba56ece
added test for inherited indentation
2014-12-10 22:01:34 -08:00
Yui T
547e1296f8
Move grammar checking: Arrow function
2014-12-10 21:52:18 -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
fc27f72324
Understand and handle modifiers on function declarations and variable statements within blocks.
...
This ensures reusability for functions/variables that may have been outside a block, but end up
inside one afterwards. It also ensure the same tree is produced when incremental parsing.
i.e. if you have:
declare function F() { }
And you add a { above it, then we current have an incremental parsing bug. Namely we would see
a FunctionDeclaration node and say 'yes, we can reuse that node while parsing the block'. This
is currently broken because the normal parse would not have normally accepted such a node (because
of the modifiers).
This was an example of contextual parsing of the same kind of node. Something which we do not
want to do if we want incremental parsing to work properly.
2014-12-10 18:52:56 -08:00
Mohamed Hegazy
774c061779
Merge branch 'release-1.4' into suppressNoImplicitAnyErrors
...
Conflicts:
src/compiler/parser.ts
src/harness/harness.ts
2014-12-10 18:45:28 -08:00
Yui T
31e49ed93e
Move grammar checking: callSignature, constructorType, ConstructSignature, FunctionType, IndexSignature
2014-12-10 18:39:24 -08:00
Daniel Rosenwasser
905d978883
Moved createCompilerHost into parser.ts
2014-12-10 17:13:39 -08:00
Daniel Rosenwasser
7fb92f8af0
Fixed up baselines.
2014-12-10 16:57:02 -08:00
Mohamed Hegazy
38bf383f03
Add tests for public declarations
2014-12-10 16:54:42 -08:00
Daniel Rosenwasser
9ad6eb21ed
Merge pull request #1341 from Microsoft/escapingTheTemplateOfDoom
...
Template string escaping fixes
2014-12-10 16:29:00 -08:00
Anders Hejlsberg
d2f500292f
Make initial inferences from parameterless function expressions ( #1186 )
2014-12-10 16:02:39 -08:00
Vladimir Matveev
10d08b816e
do not indent leading comments that attached to tokens with errors
2014-12-10 15:08:26 -08:00
Anders Hejlsberg
35adeb8363
Addressing CR feedback
2014-12-10 14:44:31 -08:00
Anders Hejlsberg
98c9f75e21
Adding test case
2014-12-10 14:41:37 -08:00
Cyrus Najmabadi
888b88ee43
Move textSpan and textChangeRange impls to the compiler layer.
2014-12-10 14:36:37 -08:00
Anders Hejlsberg
ab4706a211
Merge pull request #1433 from Microsoft/typeGuardWithAny
...
Type guards should not affect values of type any
2014-12-10 14:33:31 -08:00
Anders Hejlsberg
2876ba6a6c
Addressing CR feedback
2014-12-10 14:25:02 -08:00
Vladimir Matveev
30ada4cffe
conditionals are now introduce indentation scope
2014-12-10 14:03:14 -08:00
Cyrus Najmabadi
c2d4cd5887
Move TextSpan into the compiler layer.
2014-12-10 13:45:08 -08:00
Mohamed Hegazy
b0574cbdf9
Respond to code review comments
2014-12-10 12:37:09 -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
Anders Hejlsberg
37b5c74b93
Adding test case
2014-12-10 10:17:48 -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
Yui T
afcf11545c
Move grammar checking: type parameters
2014-12-09 18:23:07 -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
Cyrus Najmabadi
d5e2ab993e
Add incremental test.
2014-12-09 17:20:44 -08:00
Cyrus Najmabadi
a1b8a7891b
Add incremental test.
2014-12-09 17:19:44 -08:00
Cyrus Najmabadi
82098d1568
Add incremental test.
2014-12-09 17:18:18 -08:00
Cyrus Najmabadi
d549677911
Add incremental test.
2014-12-09 17:15:13 -08:00
Cyrus Najmabadi
fa86c88c47
Add incremental test.
2014-12-09 17:13:33 -08:00
Cyrus Najmabadi
7f605332fc
Add incremental test.
2014-12-09 17:12:44 -08:00
Cyrus Najmabadi
22f39c5f99
Add incremental test.
2014-12-09 17:11:32 -08:00
Cyrus Najmabadi
e59ba41d17
Add incremental test.
2014-12-09 17:09:33 -08:00
Cyrus Najmabadi
bb34a20b4d
Add incremental test.
2014-12-09 17:07:51 -08:00
Cyrus Najmabadi
e41bed82e4
Add incremental test.
2014-12-09 17:06:44 -08:00
Cyrus Najmabadi
a0a8ee0d4f
Add incremental test.
2014-12-09 17:05:14 -08:00
Cyrus Najmabadi
45f87131ab
Add incremental test.
2014-12-09 16:59:02 -08:00
Cyrus Najmabadi
de84ddd815
Add incremental test.
2014-12-09 16:57:51 -08:00
Cyrus Najmabadi
778e180e40
Add incremental test.
2014-12-09 16:56:00 -08:00
Cyrus Najmabadi
bcffd5331c
Add incremental test.
2014-12-09 16:55:02 -08:00
Cyrus Najmabadi
4de7fa0181
Add incremental test.
2014-12-09 16:54:06 -08:00
Cyrus Najmabadi
d8ff734bfc
Add incremental test.
2014-12-09 16:53:18 -08:00
Cyrus Najmabadi
2497d9abdf
Add incremental test.
2014-12-09 16:51:55 -08:00
Cyrus Najmabadi
a268cbf2d8
Add incremental test.
2014-12-09 16:50:31 -08:00
Cyrus Najmabadi
9d457701cc
Add incremental test.
2014-12-09 16:47:19 -08:00
Cyrus Najmabadi
fa4b68fa6c
Initial test harness for incremental parser tests.
2014-12-09 16:39:52 -08:00
Yui T
2c575dae27
Move grammar checking: type parameters
2014-12-09 16:33:20 -08:00
Mohamed Hegazy
0a1eabc9aa
Add new compiler flag to suppress noImplicitAny errors for object access
2014-12-09 14:08:44 -08:00
Anders Hejlsberg
bb70e9eb12
Merge pull request #1346 from Microsoft/destructuring
...
Destructuring
2014-12-09 11:39:23 -08:00
Anders Hejlsberg
7bc35b3ae0
Merge branch 'master' into destructuring
...
Conflicts:
src/compiler/binder.ts
src/compiler/checker.ts
src/compiler/emitter.ts
src/compiler/parser.ts
src/services/services.ts
tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt
2014-12-09 11:26:43 -08:00
Vladimir Matveev
0871801352
inherit delta from nodes on the same line
2014-12-09 10:47:27 -08:00
Vladimir Matveev
cd2016c48a
Merge pull request #1416 from Microsoft/inherited_deltas
...
inherit delta from nodes on the same line
2014-12-09 10:46:41 -08:00
Vladimir Matveev
7ed4225413
inherit delta from nodes on the same line
2014-12-09 04:55:33 -08:00
Vladimir Matveev
345de374e4
Merge pull request #1405 from Microsoft/formatting_space_before_comma
...
fix formatting to add space after comma between arguments when arguments...
2014-12-08 17:46:52 -08:00
Mohamed Hegazy
9d31d356b4
Merge pull request #1400 from Microsoft/addMethodToBoolean
...
Add new method on interface Boolean to ensure it is not assignable from other types
2014-12-08 17:09:27 -08:00
Yui T
aee0b9e8a1
Merge branch 'master' into fixSpeculativeParse
...
Conflicts:
tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt
2014-12-08 16:35:51 -08:00
Yui T
c1d509a940
Update and add test cases
2014-12-08 15:47:24 -08:00
Cyrus Najmabadi
5db51fead8
Better error recovery when encountering an errant comma in a semicolon delimited list.
2014-12-08 15:35:09 -08:00
Anders Hejlsberg
459dee0e84
Merge branch 'master' into destructuring
...
Move downlevel vs. ES6 emit branching into individual emit functions
2014-12-08 14:42:38 -08:00
Vladimir Matveev
929d359bdf
fix formatting to add space after comma between arguments when arguments starts with open paren
2014-12-08 14:28:19 -08:00
Mohamed Hegazy
80c5acc04e
Add new method on interface Boolean to ensure it is not assignable from other types
2014-12-08 11:22:52 -08:00
Vladimir Matveev
98750ca7b4
Merge pull request #1389 from Microsoft/colorize_type_aliases
...
add classification for type aliases
2014-12-06 07:24:59 -08:00
Vladimir Matveev
f30bb7ec35
add classification for type aliases
2014-12-05 17:32:36 -08:00
Vladimir Matveev
b9bda98256
fetch actual parameter name of indexer when printing literal type
2014-12-05 16:58:49 -08:00
Anders Hejlsberg
4118ffc703
Accepting new baselines
2014-12-04 17:43:51 -08:00
Sheetal Nandi
e29aadb4c4
"let" should only be considered a keyword in strict mode, or when it starts an actual construct
...
Handles #1301
2014-12-04 16:45:09 -08:00
Sheetal Nandi
a4ab192b6f
Fix the merge conflicts
2014-12-04 13:38:51 -08:00
Sheetal Nandi
e3320c2530
Merge pull request #1362 from Microsoft/contextSensitiveExpressions
...
Resolve the context sensitive expression containers before resolving node
2014-12-04 13:02:56 -08:00
CyrusNajmabadi
4d0f9920e9
Merge pull request #1364 from Microsoft/coverage
...
Add grammar walker test coverage cases.
2014-12-04 13:01:42 -08:00
Daniel Rosenwasser
6a882e7392
Merge pull request #1363 from Microsoft/noMoreExpandoBar
...
Fixed issue where missing identifiers pushed trivia into the navigation bar
2014-12-04 12:44:58 -08:00
Cyrus Najmabadi
d796bf1e0a
Improve the flexibility of speculative parsing.
...
We now no longer fail a speculative parse just because an error was encountered at any point while
speculating. instead, we allow the speculative function that is being called to determine if the
parse was successful or not. Only if it decides it was not successful is parsing rewound.
This improves our error recovery in several cases (esp. around arrow functions). it will also
help in a followup refactoring to prevent lookahead/speculative parsing from causing lambda
allocations.
2014-12-04 08:53:45 -08:00
Cyrus Najmabadi
4db419d93c
more baselines. revert unintentional change to harness.ts.
2014-12-03 22:14:55 -08:00
Cyrus Najmabadi
e6d1e39fb7
Add more coverage tests.
2014-12-03 21:07:50 -08:00
Cyrus Najmabadi
66c1b3df20
Add grammar walker test coverage cases.
2014-12-03 20:41:39 -08:00
Cyrus Najmabadi
c735ccc46d
Merge branch 'master' into propertyAssignments
2014-12-03 19:33:33 -08:00
Anders Hejlsberg
816abb19e4
Merge branch 'master' into destructuring
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/emitter.ts
src/compiler/parser.ts
src/compiler/types.ts
src/services/navigationBar.ts
tests/baselines/reference/assignmentLHSIsValue.errors.txt
tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
tests/baselines/reference/parserErrorRecovery_ParameterList2.errors.txt
2014-12-03 16:43:01 -08:00
Daniel Rosenwasser
0e9561194b
Added tests.
2014-12-03 15:05:38 -08:00
Daniel Rosenwasser
d4575572b6
parenetName -> parentName
2014-12-03 14:58:15 -08:00