Commit Graph

35208 Commits

Author SHA1 Message Date
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 acff59f029 Test case for visibility error in the type literal 2014-11-10 18:47:51 -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
Sheetal Nandi 5664b6fcf9 Test cases for type annotation visibility errors 2014-11-10 18:10:00 -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 c661ffa7ec Test cases for type literal annotation 2014-11-10 17:15:26 -08:00
Sheetal Nandi 9e41b0fed4 Test case for string literal overload type annotation 2014-11-10 17:09:34 -08:00
Sheetal Nandi c2188a329d Test case for paren type annotation 2014-11-10 17:08:50 -08:00
Sheetal Nandi 68a07ed0a9 Test cases for union type annotation 2014-11-10 17:01:38 -08:00
Sheetal Nandi 5207bd9625 Type annotation of tuple type emit in the declaration file 2014-11-10 17:01:35 -08:00
Sheetal Nandi 737b72d73d Test cases for array type annotation 2014-11-10 17:01:31 -08:00
Sheetal Nandi ab1558828a Test cases for type query 2014-11-10 17:01:28 -08:00
Sheetal Nandi e11fa3fcc7 Tests for type reference annotation 2014-11-10 17:01:24 -08:00
Sheetal Nandi cee6452e93 Tests for built in type name reference in type annotation 2014-11-10 17:01:21 -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 7719f39faf Update the baselines 2014-11-10 17:01:09 -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
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 5acc1a1bd2
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
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
Sheetal Nandi 6f5b20c09f Updating the gitignore file now that we build debug version of js files 2014-11-10 14:51:57 -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
Anders Hejlsberg af00c718cc End-to-end support for destructuring in variable declarations 2014-11-10 13:05:47 -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
Yui T e9122b4d85 Fix get type from short-hand property assignment 2014-11-10 10:51:08 -08:00
Cyrus Najmabadi 8262bc24ec Body is optional.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:14:04 -08:00
Cyrus Najmabadi 3174cbca0a Use union types to make For/ForIn statements simpler.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:04:26 -08:00
Cyrus Najmabadi 2288f4268f Simplify API for nodes that have both a block and an expression.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:04:02 -08:00
Cyrus Najmabadi f59cb6044d Simplify API for nodes htat have both a block and a semicolon token.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:03:40 -08:00
Cyrus Najmabadi 535dc0dc46 Simplify module name parsing.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:03:02 -08:00
Cyrus Najmabadi fc25dfbf1a Simplified parsing. 2014-11-10 01:02:23 -08:00
Cyrus Najmabadi b83c37a764 Tiny perf tweaks to scanning. 2014-11-10 01:02:08 -08:00
Cyrus Najmabadi 3825cfc47e Merge branch 'master' into trailingTrivia 2014-11-10 00:55:04 -08:00
Vladimir Matveev 89dee07bf2 merge with master 2014-11-09 23:23:49 -08:00