Commit Graph
867 Commits
Author SHA1 Message Date
Anders Hejlsberg 008e36b6ea Merge branch 'master' into typeGuards 2014-11-14 07:06:33 -08:00
Anders Hejlsberg 27d7cabad3 Fixes to type guards 2014-11-13 13:43:12 -08:00
Daniel Rosenwasser c147507de1 Added comment. 2014-11-12 15:47:14 -08:00
Daniel Rosenwasser 32f6cf33ce Corrected token start position calculation & nodeHasTokens predicate. 2014-11-12 15:10:57 -08:00
Sheetal Nandi b1297b2b65 Instead of setting fresh value, or the value with existing one of if alias is referenced in value position
Fixes #1130
2014-11-11 23:49:57 -08:00
Sheetal Nandi 4c28e73372 All the identifiers need to be escaped to make sure compiler doesnt confuse __NonUnderscore character incorrectly
Fixes #548
2014-11-11 15:44:25 -08:00
Daniel Rosenwasser 7a5c360025 Merge pull request #1072 from Microsoft/taggedTemplates
Type checking for tagged template expressions
2014-11-11 13:54:26 -08:00
Sheetal Nandi ce4dac3ae9 Merge pull request #1124 from Microsoft/completionListAugmentedType
If we are comparing left hand side for is position of type node, it is f...
2014-11-11 13:46:13 -08:00
Daniel Rosenwasser 3113429de3 Asserting myself more. 2014-11-11 13:30:10 -08:00
Daniel Rosenwasser c22a47148e Merge branch 'master' into taggedTemplates 2014-11-11 13:16:00 -08:00
Daniel Rosenwasser 9880f935ee Asserting myself. 2014-11-11 13:15:32 -08:00
Mohamed Hegazy c3131e2903 export ReferencePathMatchResult interface as it is used by other exported functions 2014-11-10 21:42:33 -08:00
Sheetal Nandi 57af2623c6 If we are comparing left hand side for is position of type node, it is false, because it is namespace position and not type position
Fixes #837
2014-11-10 19:19:33 -08:00
Dick van den Brink 96181c9c53 Removed some unused variables 2014-11-08 16:30:56 +01:00
Daniel Rosenwasser 6d353c078c Merge branch 'master' into taggedTemplates 2014-11-07 16:24:40 -08:00
Daniel Rosenwasser d99023ed98 Merge pull request #1094 from Microsoft/findAllRefsInTemplates
Corrected isExpression for templates.
2014-11-07 16:24:22 -08:00
Daniel Rosenwasser 986a0b7343 Fixed issues with incomplete calls, cleaned some code up. 2014-11-07 16:23:59 -08:00
Daniel Rosenwasser dbcb6dc01e Corrected isExpression for templates.
Fixes #1046.
2014-11-07 13:29:59 -08:00
Yui T 35facf591e Merge branch 'master' into refactorRefFilesPath 2014-11-07 10:23:31 -08:00
Sheetal Nandi 8ab038f1a3 Fixed the merge conflicts that went undetected in github 2014-11-06 18:02:29 -08:00
Daniel Rosenwasser 80b8062a01 Addressed CR feedback. 2014-11-06 17:58:21 -08:00
Sheetal Nandi beef2ebbe6 Merge pull request #1079 from Microsoft/showNarrowedType
Show narrowed type in quickInfo/completion entry
2014-11-06 17:17:51 -08:00
Sheetal Nandi 9e2eb3bc03 Merge pull request #1058 from Microsoft/contextualUnionTypeConformance
Contextual union type conformance test cases and Fix for contextual union signature
2014-11-06 16:25:40 -08:00
Yui T 6c9c502218 Merge branch 'master' into refactorRefFilesPath
Conflicts:
	src/services/compiler/precompile.ts
	src/services/services.ts
	src/services/utilities.ts
2014-11-06 15:47:58 -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
CyrusNajmabadi 147550e2d3 Merge pull request #1065 from Microsoft/shorthandProperties
Add support for parsing shorthand property assignments.
2014-11-05 22:53:43 -08:00
Daniel Rosenwasser 652b7f8909 Corrected comment. 2014-11-05 18:34:53 -08:00
Daniel Rosenwasser bcddb101aa Proper type arg inference with apppropriate overload res tests. 2014-11-05 18:20:40 -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
Daniel Rosenwasser fea1165186 Merge branch 'master' into taggedTemplates 2014-11-05 14:06:19 -08:00
Daniel Rosenwasser e12e31b144 Removed duplicate diagnostic. 2014-11-05 12:26:03 -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
Daniel Rosenwasser 1508350cb8 Merge branch 'master' into taggedTemplates
Conflicts:
	tests/baselines/reference/taggedTemplateStringsWithIncompatibleTypedTags.errors.txt
2014-11-04 15:24:21 -08:00
Daniel Rosenwasser 56027663bf Initial work on overload resolution with tagged templates.
Currently type argument inference breaks hard when the first parameter of a tag has a generic type.
2014-11-04 15:05:05 -08:00
Sheetal Nandi c4e632746e Fix the logic in getting the contextual signature of union type as per spec
Fixes #1054
2014-11-04 14:49:15 -08:00
vladima 9295a0e357 update LKG, always emit value as initializer for const enums when 'preserveConstEnums' is specified 2014-11-04 11:26:01 -08:00
Vladimir Matveev a8e5aad6e8 use const enums in compiler 2014-11-03 23:31:38 -08:00
Cyrus Najmabadi ecd31b6f6f Emit case clause statements on the same line if that's how they were written in source. 2014-11-03 18:36:01 -08:00
Vladimir Matveev f801ec1d17 Merge pull request #970 from Microsoft/fold_computed_enum_members
Const enums, resolves #1029
2014-11-03 14:10:38 -08:00
Anders Hejlsberg b3ef9622a7 Addressing CR feedback 2014-11-03 13:50:41 -08:00
vladima 4d354c0286 addressed CR feedback: adjusted text of error messages, added description to 'preserveConstEnums' command line argument 2014-11-03 11:13:32 -08:00
Anders Hejlsberg 9d99b47b51 Improved type inferences involving union types 2014-11-02 10:24:34 -08:00
Anders Hejlsberg 538e7ea3d3 Type alias cannot have reserved type name (#1030) 2014-11-02 07:01:03 -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
Anders Hejlsberg 07a3d7d564 Merge branch 'master' into aliasObjectTypeLiterals 2014-11-01 14:58:31 -07:00
Anders Hejlsberg bd07cee953 Allow type aliases for object type literals 2014-11-01 07:38:46 -07:00