1997 Commits

Author SHA1 Message Date
Anders Hejlsberg
008e36b6ea Merge branch 'master' into typeGuards 2014-11-14 07:06:33 -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
Anders Hejlsberg
27d7cabad3 Fixes to type guards 2014-11-13 13:43:12 -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
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
00a94566f5 Merge pull request #1136 from Microsoft/fixNodeHasTokens
Corrected token start position calculation and the nodeHasTokens predicate.
2014-11-12 15:47:43 -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
a390afb4f5 Merge pull request #1077 from Microsoft/typeGuardConformance
Type guard conformance
2014-11-12 13:09:09 -08:00
Sheetal Nandi
152c77cd2a Add test cases for typeof x == s and typeof x != s form of typeguard which has no effect on narrowing type 2014-11-12 12:49:29 -08:00
Sheetal Nandi
45ca9d285f Add test case for instance of type guard with interface with prototype property 2014-11-12 12:36:06 -08:00
Sheetal Nandi
c0b26a9691 Merge branch 'master' into typeGuardConformance 2014-11-12 12:24:43 -08:00
Sheetal Nandi
8f3f7b9e3f Merge pull request #1132 from Microsoft/elidedImport
Fix the incorrect eliding of import declaration
2014-11-12 10:19:18 -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
ce51343e73 Adding testcase for the incorrect eliding of the import declarations 2014-11-11 23:38:18 -08:00
Sheetal Nandi
a54f974a30 Merge pull request #1128 from Microsoft/proto
Fix services and compiler to handle __proto
2014-11-11 23:04:04 -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
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
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
Sheetal Nandi
80fbc058f4 Removed the debugger statement from test case 2014-11-11 12:26:50 -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
Cyrus Najmabadi
ba11e68ac3 CR feedback. 2014-11-10 23:44:31 -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
Cyrus Najmabadi
766cb28a3e Keep track of 'disallowIn' as an ambient parser flag instead of having to pass it along everywhere.
Conflicts:
	src/services/syntax/parser.ts
2014-11-10 19:07:20 -08:00
Sheetal Nandi
04e2169f03 Merge pull request #1116 from Microsoft/normalizeSlashes
Consolidate normalizing slashes from harness to use it from typescript core.ts
2014-11-10 16:28:11 -08:00
Sheetal Nandi
45e4e16afc Consolidated normalizing slashes to use from typescript core in services 2014-11-10 16:09:00 -08:00
Sheetal Nandi
23b861370c Merge pull request #1118 from Microsoft/completionWithBackSlashAfterString
Test case for completion list at backslash following string
2014-11-10 15:56:38 -08:00
CyrusNajmabadi
25e28b22a1 Merge pull request #1105 from Microsoft/trailingTrivia
Trailing trivia
2014-11-10 15:52:30 -08:00
Sheetal Nandi
0cabff49b6 Test case for completion list at backslash following string
Fixed by 5acc1a1bd21e7aafb3bd5066969af6a7ddfd547b
Tests #982
2014-11-10 15:13:55 -08:00
Mohamed Hegazy
2e39c9362e Merge pull request #1117 from Microsoft/sighelp
set the correct range for paramters in signature help
2014-11-10 15:11:53 -08:00
Mohamed Hegazy
03c80ac8b3 set the correct range for paramters in signature help 2014-11-10 15:09:16 -08:00
Sheetal Nandi
62f1144518 Consolidate normalizing slashes and use it from typescript core.ts 2014-11-10 14:52:04 -08:00
Sheetal Nandi
6f5b20c09f Updating the gitignore file now that we build debug version of js files 2014-11-10 14:51:57 -08:00
Dan Quirk
40ffa8715a Merge pull request #1085 from joshk/patch-1
Use the new beta build env on Travis
2014-11-10 12:20:08 -08:00
Cyrus Najmabadi
8262bc24ec Body is optional.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:14:04 -08:00