Commit Graph

4491 Commits

Author SHA1 Message Date
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
Cyrus Najmabadi
6895efc7c5 Function property assignments can also be generators.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:02:12 -08:00
Cyrus Najmabadi
e0c93a1c08 Add support for parsing generator declarations.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:01:33 -08:00
Cyrus Najmabadi
ecfc60ff16 Update comment 2014-11-11 19:00:57 -08:00
Cyrus Najmabadi
e5b997c530 Provide more consistent behavior in how parseFunctionBlock works. 2014-11-11 19:00:35 -08:00
Cyrus Najmabadi
be202a4e71 Spec conformance for function blocks versus statement blocks. 2014-11-11 19:00:12 -08:00
Cyrus Najmabadi
95a7437ba0 Clean up function names. 2014-11-11 18:55:58 -08:00
Daniel Rosenwasser
1532f721d0 Initial signature help work for tagged templates. 2014-11-11 17:04:11 -08:00
Sheetal Nandi
37d84996db Fix the completion entry for __proto
Fixes #850
2014-11-11 15:56:56 -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
Mohamed Hegazy
ded34ef3ae Add support for typed arrays 2014-11-11 15:36:06 -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
Vladimir Matveev
f53254b538 if preceding token cannot be found - scan from the beginning of enclosing node 2014-11-11 13:25:54 -08:00
Mohamed Hegazy
abed6e48a4 Cleanup Proxy definition 2014-11-11 13:21:29 -08:00
Vladimir Matveev
31763a31d3 code cleanup: moved captured locals to parameters 2014-11-11 13:17:57 -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
Vladimir Matveev
4c5d1fb2d6 code cleanup: move code from lambda into separate functon 2014-11-11 13:05:49 -08:00
Yui T
1bf7ecac7a Find all reference for short-hand property assignment 2014-11-11 11:01:12 -08:00
Mohamed Hegazy
4257e1c168 Make Map.prototype.set second paramter optional 2014-11-11 09:57:22 -08:00
Anders Hejlsberg
bd65f16e06 Parser errors for destructuring declarations 2014-11-11 09:24:49 -08:00
Mohamed Hegazy
20bbebc7eb Make WeakMap.prototype.set second parameter optional 2014-11-11 00:56:49 -08:00
CyrusNajmabadi
d5cfb9decd Merge pull request #1123 from Microsoft/allowIn
Keep track of 'disallowIn' as an ambient parser flag instead of having to pass it along everywhere.
2014-11-11 00:35:29 -08:00
Mohamed Hegazy
6b5d0b091c Use PropertyKey instead of string when appropriate 2014-11-10 23:54:39 -08:00
Cyrus Najmabadi
ba11e68ac3 CR feedback. 2014-11-10 23:44:31 -08:00