Jason Freeman
4c09ccd60e
Check that Symbol properties are proper, and support downlevel type checking
2015-02-06 21:32:51 -08:00
Jason Freeman
3834edd747
Refactor part of getPropertyNameForIndexedAccess into checkSymbolNameIsProperSymbolReference
2015-02-06 21:32:47 -08:00
Jason Freeman
83258629ea
Fix error message
2015-02-06 21:32:44 -08:00
Jason Freeman
d07ed679a0
Support indexing with known symbols
2015-02-06 21:32:40 -08:00
Jason Freeman
df826de042
symbols in type guards
2015-02-06 21:32:37 -08:00
Jason Freeman
9f39a5388a
Make Symbol the apparent type of symbol
2015-02-06 21:32:33 -08:00
Jason Freeman
92617f5978
Don't pass prop.name directly for error reporting
2015-02-06 21:32:27 -08:00
Jason Freeman
6a6c03b9b7
Fix error message wording
2015-02-06 21:32:23 -08:00
Jason Freeman
2d1647485c
Fix expression checking for symbols
2015-02-06 21:32:20 -08:00
Jason Freeman
d793658b7f
Change Symbol to symbol in error messages
2015-02-06 21:32:16 -08:00
Jason Freeman
e346b70013
Change isTypeOfKind calls to pass symbol TypeFlag when needed
2015-02-06 21:32:09 -08:00
Jason Freeman
e508bf7e86
Add symbol keyword
2015-02-06 21:32:02 -08:00
Jason Freeman
25fcbe2f9e
Change certain hasDynamicName checks to check the SyntaxKind instead
2015-02-06 21:31:47 -08:00
Jason Freeman
9cb38fb5f2
Create global Symbol type
2015-02-06 21:31:44 -08:00
Jason Freeman
30892af563
Change computed property error message to mention Symbols
2015-02-06 21:31:41 -08:00
Jason Freeman
f344654460
Add named property symbol for known Symbol properties
2015-02-06 21:31:37 -08:00
Jason Freeman
39952b1a93
Syntactically allow computed properties everywhere if the name looks like a built in Symbol
2015-02-06 21:31:27 -08:00
Jason Freeman
b30d8f39c2
Change computed property error messages to be about symbols
2015-02-06 21:31:23 -08:00
Jason Freeman
11d75ef4ce
Allow Symbol indexer in ES6
2015-02-06 21:31:20 -08:00
Cyrus Najmabadi
5c0b38b203
Remove getEnumMemberValue, it is now subsumed into getConstantValue.
2015-02-05 18:26:56 -08:00
Cyrus Najmabadi
c77f732762
CR feedback.
2015-02-05 17:24:46 -08:00
Cyrus Najmabadi
b0061c1420
Emit both javascript and declarations in the presence of errors (*unless* -noEmitOnError is specified).
2015-02-05 14:41:04 -08:00
Cyrus Najmabadi
337a99f62a
Change the API for getting diagnostics so that all calls go through a Program instance.
2015-02-05 01:47:29 -08:00
Cyrus Najmabadi
b12be3db19
Remove dependency from the typechecker to the compiler host.
...
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains. Now
we don't concatenate them up front. Instead, we just store the message chain
in the diagnostic itself. Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Cyrus Najmabadi
28c1a23e7c
Track performance statistics in the ts module.
...
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi
c7160ddb31
Rename semanticDiagnostics to bindDiagnotics.
2015-02-04 13:31:36 -08:00
Cyrus Najmabadi
35a6d0e68a
Introduce an object to store and manage diagnostics for different compiler components.
2015-02-04 13:04:42 -08:00
Cyrus Najmabadi
95702a89a7
Fix spelling of 'Filename' to be 'FileName'.
2015-02-03 16:08:46 -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
Cyrus Najmabadi
e63d795b1a
Rename function.
2015-02-02 15:55:50 -08:00
Vladimir Matveev
b6bbefda77
Merge pull request #1876 from Microsoft/crashInIncompleteFunction
...
fix crash in getReturnTypeFromFunctionBody if function declaration is in...
2015-02-02 15:49:20 -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
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
Vladimir Matveev
732ebf2aeb
fix crash in getReturnTypeFromFunctionBody if function declaration is incomplete and does not have body
2015-01-30 18:20:26 -08:00
Yui T
416267172d
Address code review
2015-01-30 17:48:07 -08:00
Yui T
6a0eaf52bf
Update an error
2015-01-30 16:51:12 -08:00
Anders Hejlsberg
c7e7bb12fe
Addressing CR feedback
2015-01-30 14:14:08 -08:00
Yui T
cf5aadb28d
Address code review
2015-01-30 12:20:21 -08:00
Yui T
e4b206c4a2
Merge branch 'master' into emitArrowFunctionES6
2015-01-29 15:37:45 -08:00
Ryan Cavanaugh
d224286d59
Address CR feedback
2015-01-29 14:37:57 -08:00
Anders Hejlsberg
e322a13c80
Deeper type inference in context sensitive arguments
2015-01-29 14:20:38 -08:00
Ryan Cavanaugh
d0ca71f445
Correctly copy assumptions back into the relational cache
2015-01-29 13:32:27 -08:00
Ryan Cavanaugh
b7824e8de4
Merge remote-tracking branch 'origin/master' into elaborateErrorsOnce
2015-01-29 11:27:39 -08:00
Yui T
9b04180475
Change tab to space
2015-01-28 17:56:48 -08:00
Yui T
2b200d4727
Address code review
2015-01-28 17:34:38 -08:00
Yui T
70140ef508
Fix spacing due to tab
2015-01-28 16:43:25 -08:00
Yui T
ca3c1ed543
Address the issue that arrow function doesn't have arguments objects
2015-01-28 16:10:15 -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