Commit Graph

28909 Commits

Author SHA1 Message Date
Anders Hejlsberg efd9f60d14 Allow union types in indexing expressions. 2015-01-19 10:48:01 -08:00
Ivo Gabe de Wolff 434c908c36 Re-add debug assert & fix indent 2015-01-19 11:45:48 +01:00
Ivo Gabe de Wolff 161545de97 Change tagged template emit to new style 2015-01-19 11:33:43 +01:00
Ivo Gabe de Wolff d339a52b6a Remove statement from binder 2015-01-19 11:32:27 +01:00
Ivo Gabe de Wolff ed7ae27f4c Remove binding of tagged templates 2015-01-19 11:09:57 +01:00
Ivo Gabe de Wolff 28b90a2be3 Remove properties from types.ts 2015-01-19 11:09:27 +01:00
Colin Snover d736014f35 Expose optional getNewLine for language service hosts
Fixes #1653.
2015-01-19 05:02:36 +00:00
Anders Hejlsberg af61e6424a Watch for changes to tsconfig.json in -watch mode 2015-01-18 17:40:05 -08:00
Mohamed Hegazy c9b1309025 Gracefully handel getChangeRange in Scriptsnapshot.fromString 2015-01-16 21:33:53 -08:00
Mohamed Hegazy 66f8257fc8 Remove isOpen from souceFile and LanugageServiceHost interfaces 2015-01-16 21:23:51 -08:00
Vladimir Matveev edc65e1753 addressed CR feedback: renamed update to updateSourceFile 2015-01-16 18:19:47 -08:00
Vladimir Matveev cf8c21893a moved update function out of SourceFile 2015-01-16 16:22:11 -08:00
Jason Freeman 1e8e65c839 Merge pull request #1699 from Microsoft/instrumenterFix
Change sys to ts.sys in instrumenter
2015-01-16 15:57:18 -08:00
Jason Freeman ca9cd9af2b Change sys to ts.sys in instrumenter 2015-01-16 15:25:39 -08:00
Sheetal Nandi c46662fa72 Fixes the duplicate doc comment display in case of union property
Handles #1237
2015-01-16 12:58:10 -08:00
Vladimir Matveev c40977c5fb move getSyntacticDiagnostics out of SourceFile 2015-01-16 12:32:37 -08:00
Vladimir Matveev 45ac06a0f2 move line map related function out of SourceFile 2015-01-16 12:02:12 -08:00
Anders Hejlsberg bce15cb368 Fixing negated language version checks 2015-01-16 07:15:31 -08:00
Anders Hejlsberg c342b58b23 Adding reference to core.ts in sys.ts 2015-01-15 18:18:19 -08:00
Anders Hejlsberg ee6f2faabb Accepting baselines for corrected error messages 2015-01-15 17:19:22 -08:00
Anders Hejlsberg 960d92f9b6 Default to all files only when none are specified in tsconfig.json 2015-01-15 17:12:45 -08:00
Yui T ba239c5812 Address code review 2015-01-15 17:12:44 -08:00
Daniel Rosenwasser 5bcb52f9b0 Merge pull request #1676 from Microsoft/disallowOptionalBindingParameters
Disallow optional destructured parameters in implementation signatures.
2015-01-15 16:55:14 -08:00
Daniel Rosenwasser 2a11222050 'may not' -> 'cannot' 2015-01-15 16:29:50 -08:00
Anders Hejlsberg 50b0cb98cc Adding missing @module to several fourslash tests 2015-01-15 15:57:48 -08:00
Anders Hejlsberg 65452aa011 Hardening compiler to accept empty CompilerOptions object 2015-01-15 15:57:08 -08:00
Yui 778c91ef47 Merge pull request #1604 from Microsoft/addTestsForRestAndDefault
Add tests for rest and default
2015-01-15 14:32:57 -08:00
Yui T 6d678b7d4f Merge branch 'master' into addTestsForRestAndDefault 2015-01-15 13:57:25 -08:00
Daniel Rosenwasser 8dd81ea4fc Merge pull request #1673 from Microsoft/unDestructuringParameterProperties
Disallow destructured parameter properties
2015-01-15 13:39:47 -08:00
Anders Hejlsberg f9f95ba614 Support for tsconfig.json files in command-line compiler 2015-01-15 13:22:23 -08:00
Yui 713e545fcd Merge pull request #1675 from Microsoft/fixCurrentDirectoryForRwc
Pass information of RWC currentDirectory to the Harness
2015-01-15 10:56:28 -08:00
Yui T 02b78da64b Merge branch 'master' into fixCurrentDirectoryForRwc 2015-01-15 10:36:45 -08:00
Yui T ffbdf46f25 Address code review 2015-01-15 09:56:43 -08:00
Daniel Rosenwasser 75a1a8a493 Disallow optional destructured parameters in implementation signatures. 2015-01-14 17:25:46 -08:00
Mohamed Hegazy 93466517ad Inline the return of createCompilerHost 2015-01-14 17:22:15 -08:00
Mohamed Hegazy 3434aa0bdd Remove getDefaultLibFilename from the LS host interface as its result is never honored by the LS.
The LS operate only on a fixed list of files initialized by the host's getScriptFileNames(), if a file is not in this list, it will not be queried from the host, rather considered a missing file. Thus the result of getDefaultLibFilename()is either in the list, or will be ignored.
2015-01-14 17:20:27 -08:00
Mohamed Hegazy adee215e6c Make logger methods optional on the language service host 2015-01-14 17:05:50 -08:00
Daniel Rosenwasser dafe7c8958 Added tests. 2015-01-14 17:02:31 -08:00
Yui T 6e8957da34 Pass information of rwc's currentDirectory to the compiler host in the Harness 2015-01-14 16:28:10 -08:00
Daniel Rosenwasser e19ebc6d3e Disallow binding patterns in parameter properties. 2015-01-14 16:15:00 -08:00
Daniel Rosenwasser 61e2eb6b89 Renamed tests. 2015-01-14 16:13:12 -08:00
Daniel Rosenwasser f58e6fc4a1 Fixed incorrect tests. 2015-01-14 16:08:29 -08:00
Mohamed Hegazy 3c59b9fe9c Add getDefaultLibraryFilePath to retrive the default lib file path for node package consumers 2015-01-14 15:52:53 -08:00
Daniel Rosenwasser bfe63cc4cb Merge pull request #1648 from Microsoft/contextualTypeParenthesizedExpressions
Contextually type parenthesized expressions
2015-01-14 14:52:07 -08:00
Dick van den Brink 868cbb6d76 Removed services/compiler/emitter.ts
This one is replaced by src/compiler/emitter.ts
2015-01-14 23:22:43 +01:00
Dick van den Brink b4bab03353 Removed services/compiler/optionsParser.ts
Code is also defined here:  src\compiler\tsc.ts
2015-01-14 23:22:28 +01:00
Dick van den Brink 186c04cebc Remove now unused diagnostics keys 2015-01-14 23:22:04 +01:00
Dick van den Brink e69573b479 compiler\tsc.ts isn't used
DiagnosticCode.Specify_module_code_generation_0_or_1 doesn't even exist and it doesn't understand es6
2015-01-14 23:21:15 +01:00
Dick van den Brink 30fa715c2c Remove src\services\compiler\diagnostics.ts
It contains the Logger interface but src\services\services.ts is the one which is used (also has more methods)
2015-01-14 23:20:38 +01:00
Yui d391a8a148 Merge pull request #1670 from Microsoft/fixTypeGuardWithInstanceOf
Fix narrow type for instanceOf and add testcases
2015-01-14 11:50:43 -08:00