Commit Graph
75 Commits
Author SHA1 Message Date
Cyrus Najmabadi 990bbb2dce CR feedback to use template strings. 2015-02-19 15:52:37 -08:00
Cyrus Najmabadi 124a77cc3a Remove 'ZeroBased' from all APIs, now that all APIs are zero based. 2015-02-16 19:35:45 -08:00
Cyrus Najmabadi 1098e80f4b Remove one-based helper function. 2015-02-16 17:41:07 -08:00
Cyrus Najmabadi 35b489d7d1 Rename our one-based methods to more clearly indicate that that's what base they use. 2015-02-16 15:20:05 -08:00
Yui T 91a39dd000 Fix time measurement 2015-02-13 13:42:17 -08:00
Cyrus Najmabadi 66a363f449 Simplify the API for emitting and reporting exit statuses to callers. 2015-02-05 15:50:18 -08:00
Cyrus Najmabadi 337a99f62a Change the API for getting diagnostics so that all calls go through a Program instance. 2015-02-05 01:47:29 -08:00
Cyrus Najmabadi b12be3db19 Remove dependency from the typechecker to the compiler host.
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains.  Now
we don't concatenate them up front.  Instead, we just store the message chain
in the diagnostic itself.  Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Cyrus Najmabadi de30866460 Simplify the code for actually compiling within tsc. 2015-02-04 22:26:03 -08:00
Cyrus Najmabadi 28c1a23e7c Track performance statistics in the ts module.
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi 476c8249ac Remove 'isEmitBlocked' from the program API.
If emitting is blocked, then calling .emit on the program will simply return
immediately with an appropriate reason given in the EmitResult.
2015-02-04 17:48:29 -08:00
Cyrus Najmabadi bb307f8163 Simplify the API for emitting code from the Program instance. 2015-02-04 16:53:14 -08:00
Cyrus Najmabadi b6d083fa40 Do not publicly expose a way on a Program instance to get typecheckers with differing behavior.
Now, you can only get the non-diagnostics, pull-type-checker from the Program instance.
If you want diagnostics, you simply ask the Program instance for the diagnostics you want.
2015-02-04 16:11:38 -08:00
Cyrus Najmabadi 95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
CyrusNajmabadi fab351e0b6 Merge pull request #1913 from Microsoft/internalDTS
Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'.
2015-02-03 16:29:04 -05:00
Cyrus Najmabadi 838b9b6998 Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'. 2015-02-03 13:15:28 -08:00
Vladimir Matveev 288e38fa36 merge with master 2015-02-03 11:26:39 -08:00
Daniel Rosenwasser 394d6f4f0e Bump version to 1.5. 2015-01-30 12:17:18 -08:00
Vladimir Matveev ad42afc4af resolve merge conflicts 2015-01-22 11:23:27 -08:00
Anders Hejlsberg fbfec8a07d Simplified cache logic + better error message when JSON not supported 2015-01-20 14:53:22 -08:00
Anders Hejlsberg 25e52a3975 Ignore symbolic links when enumerating directories 2015-01-20 09:58:25 -08:00
Anders Hejlsberg 1aa67b7fc4 Adding comments and a missing undefined check 2015-01-19 16:41:33 -08:00
Anders Hejlsberg 9c802e7bd3 Modifying logic to watch files at all times in -watch mode 2015-01-19 14:45:23 -08:00
Anders Hejlsberg af61e6424a Watch for changes to tsconfig.json in -watch mode 2015-01-18 17:40:05 -08:00
Vladimir Matveev 45ac06a0f2 move line map related function out of SourceFile 2015-01-16 12:02:12 -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
Anders Hejlsberg f9f95ba614 Support for tsconfig.json files in command-line compiler 2015-01-15 13:22:23 -08:00
Cyrus Najmabadi 67b2f13cce Merge branch 'master' into layering
Conflicts:
	src/compiler/parser.ts
2014-12-18 00:39:56 -08:00
Arnavion cd6eb180c6 Don't emit outputs when -noEmit is specified. 2014-12-16 20:25:19 -08:00
Cyrus Najmabadi f5ad79fe7a Remove the dependency that TypeChecker and Emitter have on Program.
Instead, these layers explicitly specify the functionality they need, and don't take in anything extra.
2014-12-16 14:12:17 -08:00
Cyrus Najmabadi 4aa361d4bf Layer the compiler so that every layer only depends on hte layers below it.
The layering is now:

types
core
scanner
parser
binder
checker
emitter
program
2014-12-16 13:14:14 -08:00
Mohamed Hegazy 774c061779 Merge branch 'release-1.4' into suppressNoImplicitAnyErrors
Conflicts:
	src/compiler/parser.ts
	src/harness/harness.ts
2014-12-10 18:45:28 -08:00
Daniel Rosenwasser 905d978883 Moved createCompilerHost into parser.ts 2014-12-10 17:13:39 -08:00
Daniel Rosenwasser 4deea66c1c Put 'sys' into the 'ts' module. 2014-12-10 14:40:09 -08:00
Mohamed Hegazy 06e73d33be Commandline definitions use a property "paramType" to specify the name of thier type e.g. File, Version, etc.., that was changed in the defintion to paramName, without changing the use site, changing it back to paramType. 2014-12-09 14:13:44 -08:00
Paul van Brenk 40e5c73504 Update version to 1.4 2014-12-08 16:51:40 -08:00
Mohamed Hegazy d3e70ecfbf Merge branch 'master' into es6typings
Conflicts:
	src/compiler/parser.ts
	src/compiler/tsc.ts
	src/harness/harness.ts
	src/harness/projectsRunner.ts
	tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.errors.txt
2014-11-27 09:59:46 -08:00
Yui T 92f8d0ba28 Change the name invokeEmitter back to emitFiles 2014-11-25 10:30:13 -08:00
Yui T 970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Yui T dcf51d85f4 Refactoring main-compiler (tsc) to use short-hand 2014-11-18 12:06:05 -08:00
Mohamed Hegazy bdee183887 minor fixes 2014-11-17 12:47:58 -08:00
Mohamed Hegazy 25ce5db7f3 Merge branch 'master' into es6Typings
Conflicts:
	src/harness/harness.ts
	src/lib/core.d.ts
2014-11-17 11:15:46 -08:00
Mohamed Hegazy 63e1363623 Load the es6 lib if target is es6 2014-10-28 23:52:02 -07:00
Dick van den Brink e4f57569b7 addressed feedback 2014-10-28 19:45:18 +01:00
Dick van den Brink bd2c5965f5 Changed name to noEmitOnError 2014-10-27 20:48:46 +01:00
Dick van den Brink 417555c9e9 implemented treat warning as errors commandline option (warnaserror). 2014-10-26 14:53:26 +01:00
Mohamed Hegazy 9353c11382 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-23 15:01:07 -07:00
Daniel Rosenwasser b371b02ea0 Addressed CR feedback. 2014-10-21 15:11:55 -07:00
Daniel Rosenwasser aac8b3fae5 Removed Diagnostics from sys.ts in order to avoid cyclical build dependency.
Specifically, processDiagnosticMessages.ts was dependent on sys.ts, which was dependent on the rest of the compiler,
which meant that in a broken state of diagnostics, you could never compile processDiagnosticMessages.ts.
2014-10-21 14:48:43 -07:00
Mohamed Hegazy dd7ca69866 Create a new flag for diagnostics 'isEarly' and disable emit if this flag is set. Set the flag by default on all let and const errors to ensure we are not emitting invalid JS code. 2014-10-20 17:38:50 -07:00