Commit Graph

26317 Commits

Author SHA1 Message Date
Cyrus Najmabadi 96613737c2 Type checker symbols must be transient. 2014-11-14 16:49:50 -08:00
Cyrus Najmabadi 9a50f41af8 More CR feedback. 2014-11-14 16:43:07 -08:00
Cyrus Najmabadi ba2e4bff10 cr feedback. 2014-11-14 16:40:11 -08:00
Cyrus Najmabadi 3c9eea2df0 Update comment. 2014-11-14 16:32:07 -08:00
Yui T 880e958d11 Fix comment 2014-11-14 16:30:03 -08:00
Vladimir Matveev 647ff4b06a Merge pull request #1167 from Microsoft/formatting_templates
formatting: handle templates spans
2014-11-14 16:24:12 -08:00
Cyrus Najmabadi d948510425 Function and constructor types in the syntax tree. 2014-11-14 16:23:51 -08:00
Anders Hejlsberg bdfb5697af Merge pull request #1163 from Microsoft/typeGuards
Fixes to type guards
2014-11-14 15:36:07 -08:00
Vladimir Matveev 4609d242cf formatting: handle templates spans 2014-11-14 14:36:52 -08:00
Daniel Rosenwasser 4bf023982c Merge branch 'master' into taggedSigHelp 2014-11-14 13:09:09 -08:00
Daniel Rosenwasser aec8d9621c Merge pull request #1160 from Microsoft/weDontNeedNoTemplateStringsArrayPreEs6
Default to 'unknown' for the template strings array type in pre-ES6 targets.
2014-11-14 13:07:41 -08:00
Vladimir Matveev 23e35bcfc1 Merge branch 'master' into formatting_scanner 2014-11-14 11:01:17 -08:00
Vladimir Matveev 9e9f94abbb code cleanup: added comments 2014-11-14 11:00:28 -08:00
Mohamed Hegazy 7d6f7ea8e9 Fix symbol constructor and update Object properties 2014-11-14 10:14:00 -08:00
Anders Hejlsberg 008e36b6ea Merge branch 'master' into typeGuards 2014-11-14 07:06:33 -08:00
Yui T 8bd7aae869 Add comment and clean up implementation on findAllReferences 2014-11-13 17:50:34 -08:00
CyrusNajmabadi bc40997aed Merge pull request #1129 from Microsoft/yieldExpressions
Parsing support (including incremental parsing) for 'yield' expressions.
2014-11-13 16:44:29 -08:00
Daniel Rosenwasser a7774f2868 Fixed issue in harness where lib.d.ts errors are note counted. 2014-11-13 15:15:10 -08:00
Anders Hejlsberg 27d7cabad3 Fixes to type guards 2014-11-13 13:43:12 -08:00
Yui T a8ebdf0cbd Address code review 2014-11-13 12:02:13 -08:00
Yui T 1888f736e1 Fix emit for shotr-hand assignment for module 2014-11-13 11:33:31 -08:00
Gabriel Isenberg 843d3ec7ca Added a compiler test for named AMD modules. 2014-11-13 11:00:06 -08:00
Daniel Rosenwasser 56b4978040 Account for variable statements, as they are not declarations. 2014-11-12 22:23:59 -08:00
Daniel Rosenwasser 89983588c5 Look through constructor parameters if acc. modifier. 2014-11-12 22:17:57 -08:00
Daniel Rosenwasser fc720be82e Added 'Constructor' to 'isDeclaration' predicate. 2014-11-12 22:00:59 -08:00
Daniel Rosenwasser 3137ccb647 Merge branch 'master' into getOccsForModifiers 2014-11-12 21:27:07 -08:00
Cyrus Najmabadi f7890d4ddb When entering a type context, 'yield' should be allowed (as long as you're not in strict mode). 2014-11-12 19:09:09 -08:00
Sheetal Nandi 0877a650c3 Code review feedback 2014-11-12 18:42:31 -08:00
Cyrus Najmabadi 9e273ddb78 Add support for [GeneratorParameter] grammar parameter. 2014-11-12 18:10:36 -08:00
Cyrus Najmabadi a496ade945 Update context names. 2014-11-12 18:10:21 -08:00
Daniel Rosenwasser 828e31b318 Baselines, using 'unknown' as a default type. 2014-11-12 18:08:16 -08:00
Sheetal Nandi 3472119387 Remove the Obsolete api getSignatureAtPosition 2014-11-12 17:43:02 -08:00
Daniel Rosenwasser e8ec2966a2 Removed lookup of TemplateStringsArray for non-ES6 targets.
This will enable custom ES3/ES5 lib.d.ts files that omit the TemplateStringsArray type, but don't need it anyway.
2014-11-12 17:23:00 -08:00
Daniel Rosenwasser 15560a80ea Stylistic changes/comment fixups. 2014-11-12 16:31:37 -08:00
Daniel Rosenwasser 0a6dbe3b30 Merge branch 'master' into taggedSigHelp 2014-11-12 15:49:18 -08:00
Daniel Rosenwasser d951388cdf Merge branch 'master' into taggedSigHelp 2014-11-12 15:47:56 -08:00
Daniel Rosenwasser c147507de1 Added comment. 2014-11-12 15:47:14 -08:00
Sheetal Nandi 5e94f4a5c2 Code review feedback 2014-11-12 15:40:45 -08:00
Daniel Rosenwasser 32f6cf33ce Corrected token start position calculation & nodeHasTokens predicate. 2014-11-12 15:10:57 -08:00
Sheetal Nandi 0fdb0fa2d4 Quickinfo and completion entry should display const enum enumName if enum is constant
Handles #1084
2014-11-12 14:24:51 -08:00
Sheetal Nandi 49ae5c7117 Fixes the quickInfo and completion list details for let and adds test cases for let and const
Handles #1083
2014-11-12 14:23:59 -08:00
Anders Hejlsberg 7840f0d6b8 Moving error reporting to getWidenedTypeForVariableDeclaration 2014-11-12 12:32:14 -08:00
Anders Hejlsberg a6401bb3ce Adding destructuring variable declaration error messages 2014-11-12 12:03:04 -08:00
Gabriel Isenberg 2302bd23ab Initial support for named AMD modules. 2014-11-12 11:45:43 -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 63a20863c1 Fix the relative path reference resolution
Fixes #1039
2014-11-11 23:06:45 -08:00
Sheetal Nandi 8c2091bca5 Add tests to cover scenarios for relative path reference resolution 2014-11-11 23:06:35 -08:00
Cyrus Najmabadi 122cf8a52c Add clarifying comments. 2014-11-11 21:19:06 -08:00
Cyrus Najmabadi 9c48b23f43 Fix spelling mistakes, and remove unused function. 2014-11-11 19:19:44 -08:00
Cyrus Najmabadi 7ab80d260e Add support for parsing yield expressions.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:03:02 -08:00