Vladimir Matveev
45defa8741
updated tests
2015-02-03 11:33:56 -08:00
Mohamed Hegazy
d6bd9f74d2
Merge branch 'master' into LSAPICleanup
2015-02-02 18:49:13 -08:00
CyrusNajmabadi
22ed101267
Merge pull request #1899 from Microsoft/earlyErrors2
...
Emit even in the presence of parse errors.
2015-02-02 20:24:06 -05:00
Mohamed Hegazy
277235539a
Merge branch 'master' into LSAPICleanup
2015-02-02 17:14:08 -08:00
Mohamed Hegazy
6807bf86a5
Merge pull request #1855 from stanthomas/master
...
issue #1833 : const enum: supress value comment in emitted javascript
2015-02-02 16:35:11 -08:00
Cyrus Najmabadi
aed3b4c186
Baseline updates now that we emit in the presence of parse errors.
2015-02-02 15:30:33 -08:00
Cyrus Najmabadi
5343336763
Baseline updates now that we no longer have early errors.
2015-02-02 15:15:54 -08:00
Stan Thomas
c1087ae0a9
accept updated baseline reference following addition of test for const enum comment suppression
2015-02-02 18:10:18 -05:00
Mohamed Hegazy
8524bfc5ca
Merge branch 'master' into LSAPICleanup
2015-02-02 13:55:45 -08:00
Yui T
122d5870f1
Merge branch 'master' into emitArrowFunctionES6
2015-02-02 11:12:45 -08:00
Anders Hejlsberg
3f3e974aac
Merge pull request #1861 from Microsoft/deeperTypeInference
...
Deeper type inference in context sensitive arguments
2015-02-02 11:05:55 -08:00
Yui T
53dffda97b
Merge branch 'master' into emitArrowFunctionES6
2015-02-02 10:35:54 -08:00
Anders Hejlsberg
34ed45df8e
Adding more tests
2015-02-02 10:26:31 -08:00
Daniel Rosenwasser
7b43672ce0
Amend baselines.
2015-01-31 12:09:22 -08:00
Daniel Rosenwasser
e174fe4f47
Merge pull request #1575 from chrisbubernak/betterErrorsForTypesWithSameName
...
Better errors for types with same name
2015-01-30 21:08:48 -08:00
Yui T
6a0eaf52bf
Update an error
2015-01-30 16:51:12 -08:00
Mohamed Hegazy
9a6e3ad52d
Merge branch 'master' into LSAPICleanup
...
Conflicts:
src/services/services.ts
2015-01-30 16:29:45 -08:00
Anders Hejlsberg
005676005f
Adding test
2015-01-30 14:14:22 -08:00
Yui T
cf5aadb28d
Address code review
2015-01-30 12:20:21 -08:00
Anders Hejlsberg
2ef36e8d54
Accepting new baselines
2015-01-29 21:22:56 -08:00
Yui T
e4b206c4a2
Merge branch 'master' into emitArrowFunctionES6
2015-01-29 15:37:45 -08:00
Sheetal Nandi
484144bf98
More test cases for incorrect named modules specification
2015-01-29 14:30:28 -08:00
Sheetal Nandi
89d0146b1c
Tests for more combination of import specifier list
2015-01-29 14:20:03 -08:00
Sheetal Nandi
fc912729f5
Some refactoring of how import specifiers are parsed as per code review feedback
2015-01-29 14:14:05 -08:00
Sheetal Nandi
b0f2265fe3
Code review feedback
2015-01-29 13:38:26 -08:00
Ryan Cavanaugh
d0ca71f445
Correctly copy assumptions back into the relational cache
2015-01-29 13:32:27 -08:00
Mohamed Hegazy
0abef5219b
Update test failing by previous commit
2015-01-29 12:55:25 -08:00
Ryan Cavanaugh
b7824e8de4
Merge remote-tracking branch 'origin/master' into elaborateErrorsOnce
2015-01-29 11:27:39 -08:00
Mohamed Hegazy
5fa30e550c
Add API sample tests
2015-01-29 11:23:02 -08:00
Yui T
d5b953d3f6
Add testcases
2015-01-28 16:17:13 -08:00
Daniel Rosenwasser
e4d3051532
Added Jason's example for contextually typing parameters.
2015-01-27 22:39:48 -08:00
Daniel Rosenwasser
26929ee5f2
Merge pull request #1816 from Microsoft/typeArgsInSuperCall
...
Contextually type parameters in super calls using type arguments on the base class.
2015-01-27 17:29:48 -08:00
Cyrus Najmabadi
71de2de6ed
Merge branch 'master' into emitCleanup
2015-01-27 17:10:33 -08:00
Sheetal Nandi
69fef6e544
Parsing for default binding import syntax
2015-01-27 16:43:46 -08:00
Sheetal Nandi
5eb009461e
Parsing for NamedImports
...
NamedImports :
{ }
{ ImportsList }
{ ImportsList , }
ImportsList :
ImportSpecifier
ImportsList , ImportSpecifier
ImportSpecifier :
ImportedBinding
IdentifierName as ImportedBinding
Conflicts:
src/compiler/parser.ts
2015-01-27 16:28:28 -08:00
Sheetal Nandi
fdd7032c61
Parsing for import * as ImportedBinding
2015-01-27 16:16:31 -08:00
Sheetal Nandi
4f1b908212
Parse import ModuleSpecifier;
2015-01-27 16:16:27 -08:00
Daniel Rosenwasser
40796b2c6d
Added more tests.
2015-01-27 14:42:39 -08:00
Yui T
2e2559b097
Update tests baseline from merging with master
2015-01-27 14:27:51 -08:00
Yui T
15b05e632d
Merge branch 'master' into emitArrowFunctionES6
2015-01-27 13:40:19 -08:00
Daniel Rosenwasser
8ee09dbe6e
Addressed Jason's pedantic correction over the wording of a comment.
2015-01-27 13:36:10 -08:00
Anders Hejlsberg
9289cfb0b0
Merge pull request #1803 from Microsoft/enumUnionTypeGuard
...
Fixes to union types in type guards and instanceof
2015-01-27 06:52:03 -08:00
Anders Hejlsberg
5c3da7cc8c
Merge branch 'master' into objectLiteralWidening
...
Conflicts:
src/compiler/checker.ts
tests/baselines/reference/intTypeCheck.errors.txt
2015-01-27 06:28:04 -08:00
Yui T
f219a2de25
Address code review; preserve users non-parenthesis
2015-01-26 19:00:38 -08:00
Daniel Rosenwasser
93dbcf006f
Contextually type parameters in super calls using type arguments on the base class.
2015-01-26 18:42:17 -08:00
Jason Freeman
ca8c446d3f
Use transient symbols when computing the indexers for object literals
2015-01-26 16:48:53 -08:00
Anders Hejlsberg
0410394de0
Modifying test
2015-01-25 16:25:38 -08:00
Anders Hejlsberg
7f63180b64
Adding tests
2015-01-24 17:23:22 -08:00
Anders Hejlsberg
d6eb486c3a
Accepting new baselines
2015-01-24 08:04:23 -08:00
Yui T
3115288ec5
Update baseline and fix white space
2015-01-23 17:28:30 -08:00
Jason Freeman
9c9434b80f
Merge branch 'master' into computedProperties
...
Conflicts:
tests/baselines/reference/intTypeCheck.errors.txt
2015-01-23 11:45:53 -08:00
Cyrus Najmabadi
a82289c8b4
Emit comments in a lot more places.
2015-01-22 15:58:00 -08:00
Anders Hejlsberg
ccffc9f25f
Adding more tests
2015-01-22 15:12:55 -08:00
Anders Hejlsberg
963de957cb
Adding regression test
2015-01-22 14:52:15 -08:00
Cyrus Najmabadi
d2e96c1779
Simplify enum emit.
2015-01-22 14:45:55 -08:00
Anders Hejlsberg
21e6784038
Accepting new baselines
2015-01-22 11:04:09 -08:00
Jason Freeman
f7a8ba28ff
Use isTypeOfKind in computed property checks
2015-01-21 17:01:42 -08:00
Jason Freeman
eeb4dc447b
Merge branch 'master' into computedProperties
2015-01-21 15:51:31 -08:00
Anders Hejlsberg
2052ac3958
Merge pull request #1765 from Microsoft/unionTypeOperations
...
Correct handling of union types in expressions
2015-01-21 15:43:54 -08:00
Jason Freeman
768d818d27
Fix error message wording
2015-01-21 15:05:19 -08:00
Anders Hejlsberg
f34620db63
Modifying and adding tests
2015-01-21 13:55:07 -08:00
Sheetal Nandi
4d1182401c
Type alias declaration is type only declaration and doesnt make module instantiated
...
Handles #1724
2015-01-21 11:18:42 -08:00
Jason Freeman
b022ccd430
Merge branch 'master' into computedProperties
...
Conflicts:
src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Jason Freeman
de5aa6c0d2
Fix source map scope name for computed properties
2015-01-21 11:01:05 -08:00
Yui T
581beb58dc
Merge branch 'master' into emitArrowFunctionES6
2015-01-21 10:36:32 -08:00
Ryan Cavanaugh
96f8d6273e
Missed a file
2015-01-21 10:06:13 -08:00
Sheetal Nandi
e8e2356afa
Fixes the emit of comment when comment ends on last line
...
This fixes regression from 5a7500ca5e
with addition of eof token
Handles #1714
2015-01-20 21:16:14 -08:00
Jason Freeman
eb7798fbb2
Skip computed properties on declaration emit
2015-01-20 18:29:04 -08:00
Jason Freeman
85219ee5e1
Check computed properties against indexers in classes
2015-01-20 17:07:55 -08:00
Ryan Cavanaugh
fa239326f0
Elaborate relational errors at least once when reporting them
2015-01-20 14:18:22 -08:00
Jason Freeman
89f36bb9c5
Disallow computed properties referencing type parameters from containing type
2015-01-19 18:44:15 -08:00
Jason Freeman
b5349a5038
Disallow super and fix this capturing for computed properties
2015-01-19 16:37:17 -08:00
Jason Freeman
4cc2722700
Disallow this in computed properties in classes
2015-01-19 16:37:10 -08:00
Jason Freeman
f943f6c486
Adjust error numbers
2015-01-19 16:37:07 -08:00
Jason Freeman
1973b42946
Indexers in object literals include computed property types
2015-01-19 16:37:03 -08:00
Jason Freeman
1b35a1be25
Contextual typing for computed properties
2015-01-19 16:37:00 -08:00
Jason Freeman
96b5f1fe43
Add tests for classes, methods, accessors with computed properties
2015-01-19 16:36:53 -08:00
Jason Freeman
de3eb36b2c
Update baselines
2015-01-19 16:36:50 -08:00
Jason Freeman
4ac2b4b9c8
Add tests for object literals with computed properties
2015-01-19 16:36:43 -08:00
Jason Freeman
7192767a00
Add type checking for computed properties in object literals
2015-01-19 16:36:39 -08:00
Jason Freeman
ef06879a75
Create symbols for computed properties
2015-01-19 16:36:36 -08:00
Jason Freeman
d192fea774
Switch checkObjectLiteral to iterate over element declarations
2015-01-19 16:36:32 -08:00
Jason Freeman
15187e5e1d
Enable computed properties
2015-01-19 16:36:28 -08:00
Anders Hejlsberg
a2ecaf60f0
Merge branch 'master' into tsconfig
2015-01-19 14:50:18 -08:00
Anders Hejlsberg
ee6f2faabb
Accepting baselines for corrected error messages
2015-01-15 17:19:22 -08:00
Daniel Rosenwasser
5bcb52f9b0
Merge pull request #1676 from Microsoft/disallowOptionalBindingParameters
...
Disallow optional destructured parameters in implementation signatures.
2015-01-15 16:55:14 -08:00
Daniel Rosenwasser
2a11222050
'may not' -> 'cannot'
2015-01-15 16:29:50 -08:00
Yui T
6d678b7d4f
Merge branch 'master' into addTestsForRestAndDefault
2015-01-15 13:57:25 -08:00
Daniel Rosenwasser
8dd81ea4fc
Merge pull request #1673 from Microsoft/unDestructuringParameterProperties
...
Disallow destructured parameter properties
2015-01-15 13:39:47 -08:00
Daniel Rosenwasser
75a1a8a493
Disallow optional destructured parameters in implementation signatures.
2015-01-14 17:25:46 -08:00
Daniel Rosenwasser
dafe7c8958
Added tests.
2015-01-14 17:02:31 -08:00
Daniel Rosenwasser
e19ebc6d3e
Disallow binding patterns in parameter properties.
2015-01-14 16:15:00 -08:00
Daniel Rosenwasser
61e2eb6b89
Renamed tests.
2015-01-14 16:13:12 -08:00
Daniel Rosenwasser
f58e6fc4a1
Fixed incorrect tests.
2015-01-14 16:08:29 -08:00
Daniel Rosenwasser
bfe63cc4cb
Merge pull request #1648 from Microsoft/contextualTypeParenthesizedExpressions
...
Contextually type parenthesized expressions
2015-01-14 14:52:07 -08:00
Yui T
fdadd3c18e
Fix narrow type for instanceOf and add testcases
2015-01-14 11:30:58 -08:00
Jason Freeman
4a1851c7b8
Merge pull request #1562 from csnover/fix-1133
...
Ensure specialized signatures are always at the top when performing call candidate resolution
2015-01-13 17:33:57 -08:00
Daniel Rosenwasser
372b0a4e15
Updated parser lookahead for modifiers to anticipate object literals.
2015-01-13 16:24:23 -08:00
Daniel Rosenwasser
b434ee42a8
Added tests.
2015-01-13 16:06:34 -08:00
Anders Hejlsberg
cbecae3cf3
Merge pull request #1657 from Microsoft/unionTypeGuards
...
Improved union type guards
2015-01-13 11:59:54 -08:00
Anders Hejlsberg
59e266de02
Improved handing of union types in type guards
2015-01-12 14:51:20 -08:00
Vladimir Matveev
c25f3eb9a3
addressed CR feedback
2015-01-12 11:31:54 -08:00
Vladimir Matveev
ecac4a519d
disallow incorrect literal property names in indexed access for const enums
2015-01-12 10:58:21 -08:00
Yui T
cb48a5e110
Add testcases
2015-01-09 16:16:39 -08:00
Daniel Rosenwasser
22174a17c6
Contextually type parenthesized expressions.
2015-01-09 15:10:32 -08:00
Daniel Rosenwasser
cd246992ed
Clarified comment in test.
2015-01-09 14:19:24 -08:00
Daniel Rosenwasser
f5f4e28f4f
Fixed portion of test.
2015-01-08 16:53:26 -08:00
Daniel Rosenwasser
d5f02813f0
Added tests for contextual typing on parenthesized expressions, added case for tagged templates.
2015-01-08 16:39:47 -08:00
Anders Hejlsberg
40dc1341ab
Merge pull request #1621 from Microsoft/narrowingOfAny
...
Type guard narrows type any in a primitive type check
2015-01-08 15:57:15 -08:00
Anders Hejlsberg
968a56924f
Type guard narrows type any in a primitive type check
2015-01-08 14:27:39 -08:00
Daniel Rosenwasser
7b11621750
Merge pull request #1571 from Arnavion/1570-template-strings
...
Don't emit an empty template head literal if there's a template span with a non-empty literal.
2015-01-08 12:17:17 -08:00
Vladimir Matveev
4daa107cb4
Merge pull request #1614 from Microsoft/type_parameters_visibility
...
consider type parameters always visible
2015-01-07 12:41:47 -08:00
Daniel Rosenwasser
f32683d231
Merge pull request #1529 from Microsoft/uninstantiatedModulesBeforeClasses
...
Allow uninstantiated modules before clodules
2015-01-07 12:40:50 -08:00
Yui T
b0ea40164c
Emit Arrow function natively in ES6
2015-01-06 18:18:37 -08:00
Yui T
436baafc72
Add default target in compiler option of project runner
2015-01-06 18:00:59 -08:00
Vladimir Matveev
01218f86ff
consider type parameters always visible
2015-01-06 17:55:54 -08:00
Arnavion
d07151f87c
Update tests and baselines.
2015-01-06 15:28:06 -08:00
Arnavion
4dfb0cc3d8
Update tests and baselines.
2015-01-06 02:42:22 -08:00
Jason Freeman
7459c87265
Merge branch 'release-1.4'
...
Conflicts:
bin/lib.core.es6.d.ts
bin/lib.es6.d.ts
bin/tsc.js
bin/typescript.d.ts
bin/typescriptServices.d.ts
bin/typescriptServices.js
bin/typescriptServices_internal.d.ts
bin/typescript_internal.d.ts
2015-01-05 15:08:17 -08:00
Yui T
ec5c115cfa
Add tests covering emitting rest parameters natively in ES6
2015-01-05 13:33:44 -08:00
Yui T
22bf60e431
Add tests covering emitting default parameters natively in ES6
2015-01-05 13:22:43 -08:00
ChrisBubernak
8808a692e5
rewrote the fix to use a new type format flag and fixed the baselines I broke
2015-01-02 11:04:00 -08:00
ChrisBubernak
07d3c204d5
updating baseines
2014-12-30 11:06:56 -08:00
ChrisBubernak
82fcaa852c
added baselines for new test case
2014-12-30 10:50:07 -08:00
Cyrus Najmabadi
a1d04c3c65
Merge branch 'master' into mergeMarkers1
2014-12-28 18:58:47 -08:00
Colin Snover
435b44ce57
Put specialized signatures at the top of the list of call candidates
...
Fixes #1133 .
2014-12-26 01:01:41 +00:00
Cyrus Najmabadi
48bef4698b
Provide better error recovery when we encounter merge markers in the source.
...
Previously we would just treat each merge marker as trivia and then continue
scanning and parsing like normal. This worked well in some scenarios, but
fell down in others like:
```
class C {
public foo() {
<<<<<<< HEAD
this.bar();
}
=======
this.baz();
}
>>>>>>> Branch
public bar() { }
}
```
The problem stems from the previous approach trying to incorporate both branches of the merge into
the final tree. In a case like this, that approach breaks down entirely. The the parser ends up
seeing the close curly in both included sections, and it considers the class finished. Then, it
starts erroring when it encounters "public bar()".
The fix is to only incorporate one of these sections into the tree. Specifically, we only include
the first section. The second sectoin is treated like trivia and does not affect the parse at all.
To make the experience more pleasant we do *lexically* classify the second section. That way it
does not appear as just plain black text in the editor. Instead, it will have appropriate lexicla
classifications for keywords, literals, comments, operators, punctuation, etc. However, any syntactic
or semantic feature will not work in the second block due to this being trivia as far as any feature
is concerned.
This experience is still much better than what we had originally (where merge markers would absolutely)
destroy the parse tree. And it is better than what we checked in last week, which could easily create
a borked tree for many types of merges.
Now, almost all merges should still leave the tree in good shape. All LS features will work in the
first section, and lexical classification will work in the second.
2014-12-18 19:18:13 -08:00
Cyrus Najmabadi
828b33aae7
Add test demonstrating the problem with conflict markers.
2014-12-18 17:23:34 -08:00
Daniel Rosenwasser
4aa37691a1
Fixed issue where the second type's signature having type parameters would not cause an error.
2014-12-18 16:45:29 -08:00
Daniel Rosenwasser
50d0f9b719
Added tests/baselines.
2014-12-18 16:45:26 -08:00
Cyrus Najmabadi
67b2f13cce
Merge branch 'master' into layering
...
Conflicts:
src/compiler/parser.ts
2014-12-18 00:39:56 -08:00
Daniel Rosenwasser
46cd90daf0
Added test, modified test, updated baselines.
2014-12-17 17:05:05 -08:00
Daniel Rosenwasser
fac5201765
Only error on non-ambient instantiated modules preceding clodules.
2014-12-17 17:00:42 -08:00
Anders Hejlsberg
b2a02fe9ef
Merge pull request #1443 from Microsoft/improvedTypeInference
...
Make initial inferences from parameterless function expressions
2014-12-17 16:19:49 -08:00
Daniel Rosenwasser
ca5d243ca7
Added test from original issue.
2014-12-17 15:49:00 -08:00
Cyrus Najmabadi
b37b98138d
Merge branch 'master' into layering
...
Conflicts:
src/compiler/checker.ts
src/compiler/utilities.ts
2014-12-17 15:35:30 -08:00
Jason Freeman
29dfa3d6c0
Add module emit test
2014-12-17 14:33:32 -08:00
Cyrus Najmabadi
6a08c54f42
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/harness/fourslash.ts
2014-12-17 13:22:04 -08:00
Anders Hejlsberg
a667959b1f
Accepting new baselines
2014-12-17 11:50:03 -08:00
Anders Hejlsberg
766756b4b1
Merge branch 'master' into spreadAndRest
...
Conflicts:
src/compiler/parser.ts
2014-12-17 11:49:45 -08:00
Cyrus Najmabadi
cd308e78ba
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/parser.ts
tests/baselines/reference/FunctionDeclaration5_es6.errors.txt
tests/baselines/reference/VariableDeclaration2_es6.errors.txt
tests/baselines/reference/VariableDeclaration4_es6.errors.txt
tests/baselines/reference/anonymousModules.errors.txt
tests/baselines/reference/callSignaturesWithParameterInitializers2.errors.txt
tests/baselines/reference/conflictMarkerTrivia1.errors.txt
tests/baselines/reference/dottedModuleName.errors.txt
tests/baselines/reference/innerModExport1.errors.txt
tests/baselines/reference/innerModExport2.errors.txt
tests/baselines/reference/parserAccessors10.errors.txt
tests/baselines/reference/parserComputedPropertyName5.errors.txt
tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt
tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt
tests/baselines/reference/parserModifierOnStatementInBlock2.errors.txt
tests/baselines/reference/parserSkippedTokens16.errors.txt
tests/baselines/reference/privateIndexer2.errors.txt
2014-12-16 21:50:10 -08:00
Cyrus Najmabadi
99a189936f
Remove last vestiges of the grammar checker from the parser now that it has been entirely moved to the TypeChecker.
2014-12-16 19:59:16 -08:00
Yui T
9c9bd34352
Address code review
2014-12-16 19:49:40 -08:00
Yui T
d7f607234a
COMPLETE migrating grammar checking; No more errors
2014-12-16 19:30:08 -08:00
Yui T
fdfd8d4863
Cleaning up migrating grammar checking
2014-12-16 19:11:07 -08:00
Anders Hejlsberg
fab94d84e5
Merge branch 'master' into spreadAndRest
...
Conflicts:
src/compiler/parser.ts
2014-12-16 18:09:21 -08:00
Yui T
9ab59a4964
Merge branch 'master' into refactorGrammarCheck
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/parser.ts
src/compiler/types.ts
tests/baselines/reference/YieldExpression8_es6.errors.txt
tests/baselines/reference/ambientErrors.errors.txt
tests/baselines/reference/giant.errors.txt
2014-12-16 17:38:40 -08:00
Yui T
8dc9f751a3
Complete grammar checking migration; there are still errors which will be fixed once pull master into the branch
2014-12-16 17:32:15 -08:00
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
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
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
b65a422c7a
Fixed contextual typing for tagged template expressions.
2014-12-15 14:11:21 -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
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
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
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
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