Commit Graph

5165 Commits

Author SHA1 Message Date
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
Mohamed Hegazy
6ae43f3966 Fix paramters for Math.hypot function 2014-11-10 22:59:11 -08:00
Mohamed Hegazy
f5eef432a9 Use the correct name for interface Math 2014-11-10 22:49:32 -08:00
Mohamed Hegazy
ff32be7949 Add additional property to mapfn for Array.from 2014-11-10 22:33:51 -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
Vladimir Matveev
29497b8933 add comments, update fourslash tests 2014-11-10 19:04:57 -08:00
Sheetal Nandi
60f79da623 Show error for visibility only on the identifier resulting the error 2014-11-10 18:50:28 -08:00
Sheetal Nandi
c7bd7c9557 Remove unnecessary privacy errors for heritage and constraint type annotation 2014-11-10 18:34:59 -08:00
Sheetal Nandi
d6fb678222 Test cases for type alias declaration emit and privacy check.
Also removed the unnecessary error messages for type alias privacy check
2014-11-10 18:28:05 -08:00
Mohamed Hegazy
00bfc06bc7 remove unused arguments for getCompiler 2014-11-10 17:33:30 -08:00
Vladimir Matveev
7c67759ecf merge with master 2014-11-10 17:24:22 -08:00
Vladimir Matveev
068e58965b code cleanup: add more comments, rename methods 2014-11-10 17:16:28 -08:00
Sheetal Nandi
ffdb0fc45d Show error about entity name visibility on entity name resulting in the error 2014-11-10 17:01:17 -08:00
Sheetal Nandi
9ba4d37d7b Emit the type annotation as it is in the declaration file if we have it 2014-11-10 17:01:05 -08:00
Mohamed Hegazy
13a6487cd3 Merge branch 'master' into es6Typings
Conflicts:
	tests/baselines/reference/arrayTypeOfTypeOf.errors.txt
	tests/baselines/reference/redefineArray.errors.txt
2014-11-10 16:46:02 -08:00
Vladimir Matveev
d6769ae090 make smart indenter respect actual start line of the list 2014-11-10 16:33:53 -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
Anders Hejlsberg
3cda261558 Rudimentary support in language service 2014-11-10 16:01:29 -08:00
CyrusNajmabadi
25e28b22a1 Merge pull request #1105 from Microsoft/trailingTrivia
Trailing trivia
2014-11-10 15:52:30 -08:00
Mohamed Hegazy
03c80ac8b3 set the correct range for paramters in signature help 2014-11-10 15:09:16 -08:00
Yui T
7e39622d5d Basic implementation for finding all references 2014-11-10 14:55:41 -08:00
Sheetal Nandi
62f1144518 Consolidate normalizing slashes and use it from typescript core.ts 2014-11-10 14:52:04 -08:00
Vladimir Matveev
0e5d7aad68 code cleanup: removed unused code 2014-11-10 14:42:06 -08:00
Vladimir Matveev
8960ab9712 addressed CR feedback, added comments, dropped unused code 2014-11-10 13:30:00 -08:00