218 Commits

Author SHA1 Message Date
Vladimir Matveev
89dee07bf2 merge with master 2014-11-09 23:23:49 -08:00
Sheetal Nandi
12370332a1 Show narrowed type in quickInfo/completion entry
Fixes #927
2014-11-06 15:20:31 -08:00
Jason Freeman
5164fbc3bd Merge branch 'master' into computedPropertyName 2014-11-06 11:52:19 -08:00
Jason Freeman
279166be50 Address feedback 2014-11-06 11:51:49 -08:00
Jason Freeman
bc70e4a29d Make certain types of FunctionLike require block bodies 2014-11-05 18:04:19 -08:00
Jason Freeman
6c85dbe140 Refactor Declaration.name into Identifier | ComputedPropertyName 2014-11-05 17:47:30 -08:00
Vladimir Matveev
edbb99d959 merge with master 2014-11-05 17:34:42 -08:00
Cyrus Najmabadi
cb97682d83 Add the IPropertyNameSyntax.
This will help us introduce the ComputedPropertyName concept in the future.

Conflicts:
	src/services/syntax/syntaxNodes.concrete.generated.ts
2014-11-05 00:54:53 -08:00
Anders Hejlsberg
d8080a0b46 Merge pull request #1035 from Microsoft/improvedTypeInference
Improved type inference (fixes #1011)
2014-11-04 17:09:31 -08:00
Vladimir Matveev
a8e5aad6e8 use const enums in compiler 2014-11-03 23:31:38 -08:00
Anders Hejlsberg
9d99b47b51 Improved type inferences involving union types 2014-11-02 10:24:34 -08:00
Vladimir Matveev
2d94030f58 inline enum constant values for indexed access when index is string literal 2014-11-01 18:16:48 -07:00
Vladimir Matveev
0b738e86c4 merge with master 2014-11-01 02:06:37 -07:00
Vladimir Matveev
7d80b7186d do not treat module that contains only const enums as instantiated 2014-11-01 00:56:00 -07:00
Daniel Rosenwasser
63340a0d94 Addressed CR feedback. 2014-10-31 14:53:22 -07:00
Vladimir Matveev
270d18711c addressed CR feedback 2014-10-30 00:55:44 -07:00
Vladimir Matveev
e949eda583 const enums, iteration 1: const enums can be used in imports, const enums can be merged only with const enums. 2014-10-29 00:17:16 -07:00
Daniel Rosenwasser
35cf95c146 Merge branch 'master' into templates
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/services/utilities.ts
2014-10-28 19:06:07 -07:00
Daniel Rosenwasser
d522c88295 Merge branch 'master' into templates
Conflicts:
	src/compiler/checker.ts
	src/services/services.ts
2014-10-28 18:49:35 -07:00
Anders Hejlsberg
43ff75afae Merge branch 'master' into typeAliases 2014-10-28 13:31:19 -07:00
Anders Hejlsberg
1fede10b6c Use of union types and type aliases in compiler 2014-10-28 11:40:54 -07:00
Daniel Rosenwasser
3e894520ac Merge pull request #976 from Microsoft/privatePropertiesBeingTooPrivate
Fixed findAllRefs/getOccs bug where private properties declared in the constructor were only local to the constructor.
2014-10-27 18:30:31 -07:00
Daniel Rosenwasser
e3d82b7db3 Fixed findAllRefs/getOccs bug where private properties declared in the constructor were only local to the constructor.
Fixes #975.
2014-10-27 18:08:49 -07:00
Jason Freeman
d14228ed82 More PR feedback 2014-10-27 16:16:01 -07:00
Vladimir Matveev
d2e9a62726 distinguish parse errors so non-parse errors can be ignored during formatting 2014-10-24 18:15:02 -07:00
Daniel Rosenwasser
c03dc107ca Added syntactic classification for templates; also made 'spans' a NodeArray. 2014-10-24 17:14:41 -07:00
Jason Freeman
bfb63df568 Merge branch 'master' into overloadResolution
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-10-24 16:36:42 -07:00
Vladimir Matveev
622b7613f7 merge with master 2014-10-24 15:44:12 -07:00
Vladimir Matveev
e795b59a87 initial rev of using error information in formatting 2014-10-24 15:32:25 -07:00
Anders Hejlsberg
9ff3eacee5 Merge branch 'master' into typeAliases 2014-10-24 13:15:52 -07:00
Anders Hejlsberg
7a3761421f Use type alias names in aliased recursive type literals 2014-10-24 13:00:23 -07:00
Daniel Rosenwasser
e7096280b4 Added support for tagged template strings, updated baselines.
Still need to implement some error recovery and add tests.
2014-10-23 16:54:11 -07:00
Daniel Rosenwasser
b704f19502 Merge branch 'letAndConst' into templates
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-10-23 16:03:53 -07:00
Jason Freeman
05300a7efe Have inferArgumentTypes return the InferenceContext 2014-10-23 15:44:26 -07:00
Mohamed Hegazy
9353c11382 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-23 15:01:07 -07:00
Daniel Rosenwasser
518a5d3a48 Rudimentary template support, excluding tagging. 2014-10-23 14:57:47 -07:00
Anders Hejlsberg
8f29661e01 Implementation of Type Aliases in compiler core 2014-10-23 14:30:43 -07:00
Anders Hejlsberg
10a7e6ba70 Fixing in, for...in, and instanceof with union type operands 2014-10-22 16:57:43 -07:00
Anders Hejlsberg
051478d7d5 Merge pull request #942 from Microsoft/unionTypeFixes
Union type fixes and optimizations
2014-10-22 14:48:22 -07:00
Anders Hejlsberg
71c69a8e83 Renaming getApparentPropertyOfType to getPropertyOfType 2014-10-22 14:33:06 -07:00
Anders Hejlsberg
f4ccaf28c3 Union type fixes and optimizations 2014-10-22 10:53:08 -07:00
Mohamed Hegazy
dd7ca69866 Create a new flag for diagnostics 'isEarly' and disable emit if this flag is set. Set the flag by default on all let and const errors to ensure we are not emitting invalid JS code. 2014-10-20 17:38:50 -07:00
Mohamed Hegazy
0e7d8b62ef Merge branch 'master' into letAndConst 2014-10-20 13:34:06 -07:00
Jason Freeman
d5709edbc7 Merge branch 'master' into sigHelp 2014-10-20 11:52:31 -07:00
Anders Hejlsberg
152a9402d0 Merge pull request #914 from Microsoft/parensInTypes
Parentheses in type literals
2014-10-20 09:43:07 -07:00
Anders Hejlsberg
e96983dd2b Merge pull request #908 from Microsoft/contextualSignatureUnionTypes
Union types in contextual signature instantiations
2014-10-18 08:47:41 -07:00
Jason Freeman
c20e4f53ea Produce SignatureHelpParameters from type parameters for generic help 2014-10-17 17:03:45 -07:00
Jason Freeman
808ded88d6 Signature Help relies on display building routines in checker 2014-10-17 17:03:43 -07:00
Anders Hejlsberg
df715decbc Changing type-to-string conversions to use parentheses 2014-10-17 16:53:18 -07:00
Mohamed Hegazy
0a59cdd5a0 Treat blockScoped variable declarations as a separate category when it comes to symbol flags, instead of compining BlockScoped and Variable 2014-10-17 16:18:18 -07:00