Commit Graph

7816 Commits

Author SHA1 Message Date
Anders Hejlsberg bd97ba443a Restructuring and cleanup.
Changed binder to record catch clause instead of catch variable as symbol declaration.
Restructuring of getTypeOfVariableDeclaration and getTypeOfVariableOrParameterOrProperty methods.
Restructuring of checkFunctionExpression method.
2014-07-31 15:48:03 -07:00
Daniel Rosenwasser 617910b3d4 Support the '--watch' compiler flag. 2014-07-31 14:57:54 -07:00
Daniel Rosenwasser add65f1f29 Merge branch 'master' into trylessCatchesFinallyParseNicely
Conflicts:
	src/compiler/diagnosticMessages.json
2014-07-31 14:49:14 -07:00
Daniel Rosenwasser 3ba4ad55c0 Merge pull request #320 from Microsoft/slashInCharClass
Fixed error when parsing slashes in RegExp literals.
2014-07-31 14:33:58 -07:00
Vladimir Matveev ed26563146 Merge pull request #317 from Microsoft/order_of_overloads
Disallow statements between overloads
fixed #75 and #92
2014-07-31 11:37:34 -07:00
Vladimir Matveev a62b47eace addressed CR feedback: changed error message 2014-07-31 11:06:42 -07:00
Daniel Rosenwasser 35803db2e6 Fixed error when parsing slashes in RegExp literals.
Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`.

Fixes issue #318.
2014-07-31 00:36:50 -07:00
Vladimir Matveev 59b1e46102 disallow statements between overloads 2014-07-30 16:27:13 -07:00
Mohamed Hegazy 0a206d8855 Respond to code review comments:
* Change comment to say "noresolve=false" in shims.ts https://github.com/Microsoft/TypeScript/commit/05eeba5bc95f9a39ceb9c17b5674ed7135d74aed
* Switch newline to "\r\n" https://github.com/Microsoft/TypeScript/commit/9395eeaedbb4279480c306f88e7916fa9694de31
* Use hasOwnProperty for Map types https://github.com/Microsoft/TypeScript/commit/212c18460281cac5b5be5239d45f7d04212f62d8
* Switch "s" to "S" in typescriptServices.ts filename https://github.com/Microsoft/TypeScript/commit/9061e58dffbeaf3f72cee1c6ca6d8fc0b98b1ea5
* Change method names in Node to be more detailed
2014-07-30 14:46:33 -07:00
Daniel Rosenwasser a87a686496 Merge pull request #304 from Microsoft/likeaversion
Print version number for --version.
2014-07-30 11:22:31 -07:00
Anders Hejlsberg 8199b0b236 Pull model for contextual types.
New baselines reflect a couple of unrelated bug fixes.
2014-07-29 18:21:16 -07:00
Daniel Rosenwasser c171c79464 Moved error checking for command line options around. 2014-07-29 16:42:38 -07:00
Daniel Rosenwasser ef5ae6e969 Merge pull request #273 from Microsoft/es3HatesTrailingCommas
No longer emit trailing comma on object literals for ES3.
2014-07-29 16:31:17 -07:00
Daniel Rosenwasser c5349dc95f Accept object literal commas in ES3, preserve in ES5. 2014-07-29 16:25:10 -07:00
Mohamed Hegazy f5091c226f Use correct casing for file references 2014-07-29 15:03:35 -07:00
Daniel Rosenwasser 570d2bda33 Print version number for --version. 2014-07-29 14:17:39 -07:00
Mohamed Hegazy 648af3801a react to changes after rebase 2014-07-29 12:35:26 -07:00
Mohamed Hegazy 7faad38c84 remove unused interface 2014-07-29 12:18:12 -07:00
Mohamed Hegazy a6e87cd9ec enable fourslash tests by default 2014-07-29 12:18:02 -07:00
Mohamed Hegazy 0a08a42abe enbale fourslash tests 2014-07-29 12:17:33 -07:00
Mohamed Hegazy 17f7ed5cbe delete unused file 2014-07-29 12:17:13 -07:00
Mohamed Hegazy 4e570248d6 remove unused methods 2014-07-29 12:16:43 -07:00
Mohamed Hegazy 9061e58dff Change services output file name to typescriptservices.js 2014-07-29 12:16:32 -07:00
Mohamed Hegazy eb9fa722ec Add missing getNewLine method to test implementations of CompilerHost 2014-07-29 12:16:22 -07:00
Mohamed Hegazy 96a9cc9b55 remove unneded ts. qualifiers 2014-07-29 12:16:11 -07:00
Mohamed Hegazy e9f0c0ae49 Fix noimplicitany issues 2014-07-29 12:16:01 -07:00
Mohamed Hegazy 87ddcbf632 switch document to an interface 2014-07-29 12:15:51 -07:00
Mohamed Hegazy 89161c7bc7 move DocumentRegistry to an interface 2014-07-29 12:15:41 -07:00
Mohamed Hegazy ee8c4e961e remove _ prefix when applicable 2014-07-29 12:15:32 -07:00
Mohamed Hegazy f8f061ac4d merge completion helpers in services.ts 2014-07-29 12:15:22 -07:00
Mohamed Hegazy 2b04bcf5a3 merge keyword completions in services.ts 2014-07-29 12:15:12 -07:00
Mohamed Hegazy 6ca9a1a6d8 Move updated code to the ts namespace 2014-07-29 12:15:02 -07:00
Mohamed Hegazy 7d5da6c8ab remove the I prefix from interface name 2014-07-29 12:14:52 -07:00
Mohamed Hegazy 4afbcf7b18 Add Logger definition to services.ts 2014-07-29 12:14:42 -07:00
Mohamed Hegazy 70b8a569d9 move logInternalError to where it is used 2014-07-29 12:14:32 -07:00
Mohamed Hegazy f1ef966442 Switch classes to interfaces 2014-07-29 12:14:22 -07:00
Mohamed Hegazy 792f9c9ac8 reorganize definitions 2014-07-29 12:14:11 -07:00
Mohamed Hegazy bfdf2ac69a remove some more unused files 2014-07-29 12:14:01 -07:00
Mohamed Hegazy 2dfd63eb5f consolidate all services in one file: services.ts 2014-07-29 12:13:50 -07:00
Mohamed Hegazy 4a4c74958d clean up coreServices 2014-07-29 12:13:39 -07:00
Mohamed Hegazy 6ed29c2367 Switch classifer to a function 2014-07-29 12:13:29 -07:00
Mohamed Hegazy 742197077b remove unused diagnostics interfaces 2014-07-29 12:13:19 -07:00
Mohamed Hegazy 41826986ac Clean up code and types in typeScriptServices.ts 2014-07-29 12:13:09 -07:00
Mohamed Hegazy 247504924b remove the 'I' prefix from interface names 2014-07-29 12:12:59 -07:00
Mohamed Hegazy 944195e34e only expose needed types 2014-07-29 12:12:49 -07:00
Mohamed Hegazy 02fa159d7c move TypeScriptServicesFactory to shims.ts 2014-07-29 12:12:39 -07:00
Mohamed Hegazy 580eaebad3 some more cleanup 2014-07-29 12:12:28 -07:00
Mohamed Hegazy cb3f8c1d74 switch some more classes to interfaces 2014-07-29 12:12:18 -07:00
Mohamed Hegazy 410a657b1c Remove the "I" prefix from interface names 2014-07-29 12:12:07 -07:00
Mohamed Hegazy 52688af148 Switch LanguageService from a class to a function 2014-07-29 12:11:57 -07:00