Commit Graph
497 Commits
Author SHA1 Message Date
Mohamed Hegazy 3c99527e6e Add tests for __metadata and __param 2015-05-01 16:30:30 -07:00
Mohamed Hegazy 93bf569432 Merge branch 'feature/noEmitExtends' of https://github.com/whitneyit/TypeScript into whitneyit-feature/noEmitExtends 2015-05-01 16:04:04 -07:00
Cyrus Najmabadi 7769b4cd19 Update names. 2015-04-30 17:48:01 -07:00
Cyrus Najmabadi 5ad7a593d4 Add a common, dense, format for classification operations to lower cost of processing on the host side.
We now just return an array of triples to represent classified results.  The triple contains:
1) the start of the classification.
2) the length of the classification.
3) the type of the clasification.

We also encode this into a comma separated string when passing over to the managed side
(as opposed to an JSON array).  That way we don't pay such a high JSON parsing cost.
Instead, we can just do a string.split(",") on the encoded triples and process each
element ourselves.
2015-04-30 14:26:46 -07:00
Cyrus Najmabadi d1607cfc65 Merge branch 'master' into getClassifications2 2015-04-30 13:16:47 -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
Mohamed Hegazy 0d2e50b167 Merge pull request #2955 from Microsoft/projectRunner
Run all checks in it blocks
2015-04-29 10:25:07 -07:00
Mohamed Hegazy e76439b2ff Run all checks in it blocks 2015-04-28 17:48:01 -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
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
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 b562973f39 wrap project runner tests in 'it' 2015-04-26 21:09:43 -07:00
Vladimir Matveev b1cc06e44c merge with master 2015-04-23 20:50:35 -07:00
Cyrus Najmabadi 25c52bb406 Faster getClassifications 2015-04-23 13:40:34 -07:00
Paul van Brenk f5b75439ea Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-23 12:58:27 -07:00
Mohamed Hegazy ae4474aa40 Merge branch 'fix-2036' of https://github.com/csnover/TypeScript into csnover-fix-2036 2015-04-23 10:21:11 -07:00
Paul van Brenk c6a9c8fa89 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-04-22 13:05:07 -07:00
Colin Snover 378b5ffd1a Add support for UMD-like module export format
The new module format enables global-less universal modules,
compatible with both AMD and CJS module loaders.

Fixes #2036.
2015-04-22 14:21:33 -05:00
Cyrus Najmabadi 81ebac5d77 Produce type and symbol baseslines when running tests. 2015-04-21 17:07:57 -07:00
Paul van Brenk 80ae52b7e9 expose the config file processing throught the LS and
add a callback to enumerate files in a directory
2015-04-21 13:24:02 -07:00
Mohamed Hegazy 658bba9eaf Add --inlineSources option 2015-04-20 20:33:31 -07:00
Vladimir Matveev dcb4c24b43 merge with master 2015-04-20 13:40:13 -07:00
Mohamed Hegazy c940b1651a Merge branch 'master' into inlineSourceMaps 2015-04-19 13:33:50 -07:00
Mohamed Hegazy 8964b8e5b6 Merge branch 'master' into rootDir
Conflicts:
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.types
2015-04-16 16:52:51 -07:00
Cyrus Najmabadi 9ab6be3314 Don't run typewriter tests on the APISamples. It's too noisy. 2015-04-15 17:41:32 -07:00
Cyrus Najmabadi a2efe474cf Split symbol baselines from type baselines. 2015-04-15 16:44:20 -07:00
Mohamed Hegazy 261adffe50 Add rootDir option 2015-04-14 22:11:25 -07:00
Cyrus Najmabadi 29f3f6fcae Merge branch 'master' into typeWriter 2015-04-13 14:29:37 -07:00
Cyrus Najmabadi b5b9f517ce Include symbol information in the typewriter baselines. 2015-04-13 13:54:22 -07:00
Cyrus Najmabadi 592e2314d4 Simplify typewriter code. 2015-04-13 12:36:11 -07:00
Vladimir Matveev 50496ccd97 added system module kind to harness 2015-04-10 12:12:25 -07:00
Mohamed Hegazy f27cc70ce7 Merge branch 'master' into inlineSourceMaps 2015-04-09 16:55:47 -07:00
Mohamed Hegazy cacf34a4c2 Check for inlineSoruceMaps first 2015-04-09 16:55:42 -07:00
Cyrus Najmabadi 1d1ebd536a Fix up the harness code. 2015-04-08 23:41:22 -07:00
Cyrus Najmabadi 6dee32a703 Extract code for getting syntactic document highlights into its own function. 2015-04-08 21:59:50 -07:00
Jason Freeman d459c59028 Merge branch 'master' of https://github.com/Microsoft/TypeScript into iteratorSpreadDestructure 2015-04-08 16:14:24 -07:00
Mohamed Hegazy a998abb153 Add inlineSourceMap option 2015-04-08 00:14:23 -07:00
Mohamed Hegazy 1d5d10a111 add comment 2015-04-06 13:38:37 -07:00
Mohamed Hegazy facbe843d1 Merge branch 'master' into APISamples
Conflicts:
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_linter.types.pull
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-04-02 16:45:44 -07:00
Mohamed Hegazy 86f4040abb Remove typescript.d.ts from baslines of APISample tests 2015-04-02 16:39:10 -07:00
Cyrus Najmabadi 3430903440 Merge branch 'master' into JSLS 2015-03-31 18:57:56 -07:00
Cyrus Najmabadi 4347643293 CR feedback. 2015-03-31 18:17:35 -07:00
Cyrus Najmabadi 1385d9b50c Merge branch 'master' into JSLS
Conflicts:
	src/services/services.ts
2015-03-31 17:40:56 -07:00
Cyrus Najmabadi 478ac3d3ef Merge branch 'master' into classExpressions 2015-03-31 14:53:39 -07:00
Vladimir Matveev f239bbc3b1 Merge pull request #2550 from Microsoft/separateCompilation
Relax import/export elision rules for separate compilation
2015-03-31 14:51:39 -07:00
Cyrus Najmabadi a1e18fc22b Introduce a new HeritageClauseElment type.
This type represents the expression+type arguments you can get in a class or interface
heritage clause section.  For class-implements clauses, or interface-extends clauses,
these expressions can only be identifiers or dotted names.  For class extends clauses,
these could be any expressions in the future.  However, for now, we only support identifiers
and dotted names.
2015-03-31 12:29:02 -07:00
Mohamed Hegazy cebe42b81f Remove unsed options 2015-03-30 23:32:11 -07:00
Vladimir Matveev 1803d730c2 added initial set of unit tests for separate compilation mode 2015-03-30 23:17:45 -07:00