48 Commits

Author SHA1 Message Date
Cyrus Najmabadi
02c1b8978b Check source file invariants after creating/updating them in our tests. 2015-02-06 14:54:19 -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
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
Yui T
593a0992f9 Update emitter due to merge with master 2015-01-23 17:28:12 -08:00
Yui T
b0ea40164c Emit Arrow function natively in ES6 2015-01-06 18:18:37 -08:00
Yui T
436baafc72 Add default target in compiler option of project runner 2015-01-06 18:00:59 -08:00
Cyrus Najmabadi
96c3c90d9a Rename typechecker parameter related to whether or not we produce diagnostics.
Comment what the flag means.
2014-12-16 13:30:34 -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
Daniel Rosenwasser
be1eb3430c Put 'sys' into the 'ts' module. 2014-12-11 13:43:34 -08:00
Cyrus Najmabadi
6170c56af4 Remove 'isOpen' and 'version' from teh compiler's SourceFile type.
Also, provide a way for creators of a source file to specify if they
want parent nodes hooked up.
2014-12-09 16:08:01 -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
Sheetal Nandi
264bd5db7c Merge branch 'master' into relativePathReferenceResolution 2014-11-19 13:11:17 -08:00
Sheetal Nandi
e5b004899c Renamed the tests files to more generic names 2014-11-19 13:06:07 -08:00
Yui T
970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Yui T
999e4f1a0b Refactoring test framework to use short-hand 2014-11-18 12:30:58 -08:00
Mohamed Hegazy
bdee183887 minor fixes 2014-11-17 12:47:58 -08:00
Mohamed Hegazy
6c6d9bf091 Add test262 test runner 2014-11-17 11:01:05 -08:00
Sheetal Nandi
63a20863c1 Fix the relative path reference resolution
Fixes #1039
2014-11-11 23:06:45 -08:00
Sheetal Nandi
8c2091bca5 Add tests to cover scenarios for relative path reference resolution 2014-11-11 23:06:35 -08:00
Sheetal Nandi
9399e1ea99 Add after block to the describe blocks of project runner and rwc runner 2014-10-15 10:56:43 -07:00
Sheetal Nandi
710bac6d81 Fix the source map directory resolution with non case sensitive file names 2014-10-03 15:10:12 -07:00
Daniel Rosenwasser
9f7782d392 Added error 'prologue' to each error baseline. 2014-09-12 13:35:07 -07:00
Mohamed Hegazy
49d8157d28 ensure that sys is not used outside tsc.ts 2014-08-28 23:10:05 -07:00
Cyrus Najmabadi
9aee22b943 Merge branch 'master' into newLanguageService
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/harness/fourslash.ts
	src/harness/harness.ts
	src/harness/harnessLanguageService.ts
	src/harness/rwcRunner.ts
	src/services/services.ts
2014-08-22 14:23:14 -07:00
Sheetal Nandi
58fca3773f Simplify rwc runner to use the common functionality to get errors, js files etc as part of harness compilation 2014-08-20 15:26:33 -07:00
Vladimir Matveev
a271b94b9d merge with mastr 2014-08-15 12:06:53 -07:00
Cyrus Najmabadi
7e70f695bb Revert "Merge branch 'master' into newLanguageService"
This reverts commit d135fa43f50e6c22053075b36288a43ed655cc01, reversing
changes made to 7ddc00cba9a691c4e5ea5bde00da06695fc00546.
2014-08-14 17:49:02 -07:00
Cyrus Najmabadi
a1b7c4f54c Revert "Merge pull request #444 from Microsoft/newCompilerLS"
This reverts commit ae5f4c26171cc56bdff56e2893dc8ac113596270, reversing
changes made to 2f963743c4da421cc0a2fbf00a209dfff7f9aac4.
2014-08-14 17:37:45 -07:00
Sheetal Nandi
f622cb4d11 Merge pull request #381 from branch 'remote/privacyErrors'
Report privacy errors on variable/property declarations and also emit import declarations that get used to defined visible type
2014-08-13 18:48:05 -07:00
Vladimir Matveev
72fc5dbf9b added fullTypeCheckFlag to TypeChecker 2014-08-13 15:12:51 -07:00
Cyrus Najmabadi
474cf0d575 Port over changes to the ScriptSnapshot API from the languageService-v2 branch. 2014-08-12 17:12:23 -07:00
Mohamed Hegazy
349367d991 Consolidate logic to use the lib in one location in the tests 2014-08-11 15:35:15 -07:00
Sheetal Nandi
54f5f15796 Update the project runner to emit errors in more readable way 2014-08-07 17:49:47 -07:00
Sheetal Nandi
2264322380 Enable project runner to compile generated .d.ts files
Uncovered bug in quoted .d.ts compilation
2014-08-07 17:26:29 -07:00
Mohamed Hegazy
35c1577ff5 Add tests for generateBOM switch 2014-08-06 12:05:01 -07:00
Mohamed Hegazy
b1335e1795 add generateBOM switch 2014-08-06 11:37:59 -07:00
Mohamed Hegazy
63b835a7a9 Remove ByteOrderMark 2014-08-06 11:13:49 -07:00
Mohamed Hegazy
aa75de9c70 Consolidate Document and SoruceFile 2014-08-04 12:00:37 -07:00
Mohamed Hegazy
eb9fa722ec Add missing getNewLine method to test implementations of CompilerHost 2014-07-29 12:16:22 -07:00
Sheetal Nandi
8936662090 Enable compiler runner to report the errors from compiling generated declaration files 2014-07-17 18:16:32 -07:00
Anders Hejlsberg
f3f5993770 Incorporating code review feedback. 2014-07-16 11:46:25 -07:00
Anders Hejlsberg
c1d0fd979d More I/O fixes
Support for --charset command line option
File read and write errors are propagated into compiler diagnostics
emitFiles returns diagnostics in EmitResult
2014-07-16 10:57:05 -07:00
Vladimir Matveev
e9cd8a0e88 add prefixes for getCanonicalName 2014-07-14 14:44:56 -07:00
Mohamed Hegazy
214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00