Commit Graph

6862 Commits

Author SHA1 Message Date
Dick van den Brink 3aeae55fc3 Output abstract keyword in declaration files (for classes) 2015-04-30 17:53:39 +02:00
Dick van den Brink b42e447df8 Error on creating a new instance of an abstract class 2015-04-30 17:51:16 +02:00
Dick van den Brink 0e72677fd2 Accept baseline changes 2015-04-30 17:43:07 +02:00
Dick van den Brink dd1f982bde Parse abstract keyword 2015-04-30 17:40:35 +02:00
vvakame 35d6e98e98 type narrowing by constructor signiture of interface 2015-04-30 23:12:35 +09:00
Mohamed Hegazy b6905aff0c Add getTypeDefinitionAtPosition to tsserver 2015-04-29 22:55:05 -07:00
Mohamed Hegazy 6f1c307319 Add test to shims 2015-04-29 22:54:57 -07:00
Mohamed Hegazy e9f76d0002 Add implementation for getTypeDefinitionAtPosition 2015-04-29 22:54:49 -07:00
Mohamed Hegazy dda598a8dc Refactor getDefinition code 2015-04-29 22:54:40 -07:00
James Whitney 76fa4b838f Add support for --noEmitHelpers flag
This PR is a Work In Progress that addresses multiple `__extends`
being output as described in #1350: Multiple `__extends` being output
when `--module amd` is set.

The issue still exists as of `v1.5.0 - f53e6a8`.

Apparently a fix was created for this in #1356 but according to #2009, a
[comment](https://github.com/Microsoft/TypeScript/issues/2009#issuecomment-74136291)
later indicated that this was never merged in.

Further conversation continued in #2487 but did not yield any result. I
refer to my earlier recommendation in #1350.

> My question is this, would the TypeScript team be open to a flag that
> can be passed to tsc that will generate something like the following
> ```ts
> define(["require", "exports", "__extends", './mammal'], function (require, exports, __extends, Mammal) {
>     var Human = (function (_super) {
>         __extends(Human, _super);
>         function Human() {
>             _super.apply(this, arguments);
>         }
>         return Human;
>     })(Mammal);
>     return Human;
> });
> ```

To continue with the naming convention I have chosen the flag
`--noEmitHelpers`.
2015-04-30 13:23:30 +10:00
Daniel Rosenwasser eb15bb3658 Use no-default-lib for the '--noLibCheck' flag. 2015-04-29 17:42:28 -07:00
Mohamed Hegazy 64f3798bd7 Merge pull request #2935 from Microsoft/relaxExportEqualsCheck
Fix #2929: relax the check for export= in ES6 if it is resulting from an ambient declaration
2015-04-29 17:26:55 -07:00
CyrusNajmabadi 5eefc4264a Merge pull request #2964 from Microsoft/checkerSimplification
Restore checker simplification that was reverted due to a bad merge.
2015-04-29 15:21:34 -07:00
Cyrus Najmabadi 85d0c2226f Restore checker simplification that was reverted due to a bad merge. 2015-04-29 15:10:25 -07:00
Paul van Brenk 270a149571 Merge pull request #2963 from Microsoft/RenameHeritageClauseElement
Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods.
2015-04-29 15:01:29 -07:00
Mohamed Hegazy 40aaefd5af Merge pull request #2960 from Microsoft/DataViewDefinition
Fix #2953: Put DataView definition back into lib.d.ts
2015-04-29 14:57:11 -07:00
Paul van Brenk 54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Vladimir Matveev 377b48febf Merge pull request #2948 from Microsoft/localStorageForExportedNames
Store exported names locally
2015-04-29 14:08:20 -07:00
Vladimir Matveev 2184be883c addressed PR feedback 2015-04-29 13:56:17 -07:00
Cyrus Najmabadi 8d99ecfa6c Add a light=true mode for running tests faster. 2015-04-29 12:13:35 -07:00
Mohamed Hegazy 31fe7c4a66 Fix #2953: Put DataView definition back into lib.d.ts 2015-04-29 12:11:06 -07:00
Vladimir Matveev 4a919d4f04 exclude 'default' from star exports 2015-04-29 11:43:23 -07:00
Mohamed Hegazy 0d2e50b167 Merge pull request #2955 from Microsoft/projectRunner
Run all checks in it blocks
2015-04-29 10:25:07 -07:00
Vladimir Matveev 5f18d9b912 extract emitExportStar in separate function 2015-04-28 20:17:55 -07:00
Vladimir Matveev 3af5592243 allow module to reserve slots for names that they export 2015-04-28 18:51:29 -07:00
Vladimir Matveev c057c0a22a merge with master 2015-04-28 18:00:26 -07:00
Daniel Rosenwasser f988a11cfc Merge pull request #2949 from Microsoft/cleanupAndSpeedupFourslash
Cleanup and speedup fourslash
2015-04-28 17:50:25 -07:00
Mohamed Hegazy e76439b2ff Run all checks in it blocks 2015-04-28 17:48:01 -07:00
Anders Hejlsberg 4016206dce Merge pull request #2923 from Microsoft/namespaces
Namespaces
2015-04-28 17:23:49 -07:00
Daniel Rosenwasser 97cd07d1d4 Cache the emit of 'fourslash.ts'.
Yields a >25% decrease in running time for fourslash tests on my machine.
2015-04-28 17:20:38 -07:00
Mohamed Hegazy 4db61d84be Accept baselines 2015-04-28 17:13:47 -07:00
Anders Hejlsberg 477189dbb9 Accepting new baselines 2015-04-28 17:03:39 -07:00
Anders Hejlsberg 4c5aeaf0c9 Merge branch 'master' into namespaces
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/program.ts
	tests/baselines/reference/constDeclarations-access5.errors.txt
	tests/baselines/reference/es6-amd.errors.txt
	tests/baselines/reference/es6-declaration-amd.errors.txt
	tests/baselines/reference/es6-sourcemap-amd.errors.txt
	tests/baselines/reference/es6-umd.errors.txt
	tests/baselines/reference/es6-umd2.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
	tests/baselines/reference/es6ImportNameSpaceImport.errors.txt
	tests/baselines/reference/es6ImportNamedImport.errors.txt
	tests/baselines/reference/es6ImportNamedImportInExportAssignment.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt
	tests/baselines/reference/es6ModuleWithModuleGenTargetCommonjs.errors.txt
2015-04-28 16:49:23 -07:00
Vladimir Matveev 7037c6be11 removed redundant check 2015-04-28 16:37:08 -07:00
Vladimir Matveev 054b22ebc5 Merge remote-tracking branch 'origin/master' into localStorageForExportedNames 2015-04-28 16:19:13 -07:00
Vladimir Matveev aa1ad5233e generate local storage for all exported names to avoid overwriting them via star exports 2015-04-28 16:18:33 -07:00
Vladimir Matveev cde3ed0e26 Merge pull request #2937 from Microsoft/emitModuleInSeparateCompilation
emit file as external module if separateCompilation flag is specified
2015-04-28 11:19:10 -07:00
Daniel Rosenwasser f3b28c4a2a Remove 'reverse' option. 2015-04-27 16:55:53 -07:00
Daniel Rosenwasser ebe17b107f Remove global.runners. 2015-04-27 16:54:13 -07:00
Daniel Rosenwasser 883abbf1d9 Jakefile -> Jakefile.js 2015-04-27 16:50:35 -07:00
Vladimir Matveev 56bf73aa8b added tests 2015-04-27 16:37:36 -07:00
Vladimir Matveev 6ce9176926 always emit files as modules when separateCompilation flag is specified 2015-04-27 15:47:49 -07:00
Mohamed Hegazy 992bbff5b1 Fix #2929: relax the check for export= in ES6 if it is resulting from an ambient declaration 2015-04-27 13:46:45 -07:00
Daniel Rosenwasser c233073d02 Update LKG. v1.5.0-beta 2015-04-27 13:16:43 -07:00
Mohamed Hegazy 2349a27f92 Merge pull request #2917 from basarat/patch-1
services tsconfig.json added missing file references and fixed the order
2015-04-27 12:33:31 -07:00
Mohamed Hegazy 5673660e94 Merge pull request #2484 from Microsoft/inlineSourceMaps
Inline source maps
2015-04-27 10:47:32 -07:00
Mohamed Hegazy 32409f9b9b Merge branch 'master' into inlineSourceMaps 2015-04-27 10:11:43 -07:00
Vladimir Matveev 2fc90d070a Merge pull request #2925 from Microsoft/properMochaUseInProjectRunner
wrap project runner tests in 'it' instead of executing them in 'describe'
2015-04-27 09:39:55 -07:00
Vladimir Matveev 824808c1d8 Merge pull request #2840 from Microsoft/systemModule
Added support for emitting System.register modules
2015-04-27 09:39:09 -07:00
Vladimir Matveev b562973f39 wrap project runner tests in 'it' 2015-04-26 21:09:43 -07:00