Commit Graph

388 Commits

Author SHA1 Message Date
Cyrus Najmabadi
d20d20aa9c Remove "debugger;" calls. 2015-02-05 18:43:02 -08:00
Cyrus Najmabadi
acbcd6c77f Merge branch 'master' into diagnosticsOrganization 2015-02-05 17:30:27 -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
b0061c1420 Emit both javascript and declarations in the presence of errors (*unless* -noEmitOnError is specified). 2015-02-05 14:41:04 -08:00
Cyrus Najmabadi
ea4e3de91c Remove unnecessary diagnostics split on SourceFile. 2015-02-05 13:38:11 -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
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
Paul van Brenk
ece874fde3 Merge branch 'master' into LessAggresiveCompletionList 2015-02-04 14:03:49 -08:00
Cyrus Najmabadi
35a6d0e68a Introduce an object to store and manage diagnostics for different compiler components. 2015-02-04 13:04:42 -08:00
Cyrus Najmabadi
42962394f8 Merge branch 'master' into filename
Conflicts:
	src/harness/harness.ts
2015-02-03 16:40:29 -08:00
Paul van Brenk
d9f678fd6d Rename the isBuilder property to something more meaningful. 2015-02-03 16:31:53 -08:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Yui T
6cbc8de2b7 Merge branch 'master' into updateRwcAndTest262Runner 2015-02-03 13:48:45 -08:00
Yui T
c8ec147762 Address code review 2015-02-03 13:46:14 -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
Yui T
fddcc7dda4 Merge branch 'master' into updateRwcAndTest262Runner 2015-02-03 12:29:55 -08:00
Paul van Brenk
f8adf4ef9c Merge branch 'master' into LessAggresiveCompletionList 2015-02-03 12:04:07 -08:00
Vladimir Matveev
288e38fa36 merge with master 2015-02-03 11:26:39 -08:00
Mohamed Hegazy
d6bd9f74d2 Merge branch 'master' into LSAPICleanup 2015-02-02 18:49:13 -08:00
Paul van Brenk
5166d09d42 Merge branch 'master' into LessAggresiveCompletionList 2015-02-02 17:36:32 -08:00
Cyrus Najmabadi
dd8d3535ff Remove the concept of early errors from the compiler.
Currently only parse errors prevent emitting (And this will be changed in the next
code review as well).
2015-02-02 15:14:19 -08:00
Mohamed Hegazy
8524bfc5ca Merge branch 'master' into LSAPICleanup 2015-02-02 13:55:45 -08:00
Yui T
59cb93a9f6 Merge branch 'master' into updateRwcAndTest262Runner 2015-02-02 12:14:02 -08:00
Yui T
ff11ca9ee1 Update path to test262 and rwc tests files in the runners 2015-01-30 10:32:07 -08:00
Paul van Brenk
a9245d700f Merge branch 'master' into LessAggresiveCompletionList 2015-01-29 23:01:28 -08:00
Mohamed Hegazy
5fa30e550c Add API sample tests 2015-01-29 11:23:02 -08:00
Yui T
ca3c1ed543 Address the issue that arrow function doesn't have arguments objects 2015-01-28 16:10:15 -08:00
Mohamed Hegazy
e503f38272 Remove unused IScriptSnapshot.getLineStartPositions 2015-01-28 10:48:21 -08:00
Mohamed Hegazy
9628191a14 Allow the LS API to resolve referenced files 2015-01-28 00:08:05 -08:00
Mohamed Hegazy
04d8f5af12 Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-01-27 20:11:16 -08:00
Yui T
15b05e632d Merge branch 'master' into emitArrowFunctionES6 2015-01-27 13:40:19 -08:00
Yui T
593a0992f9 Update emitter due to merge with master 2015-01-23 17:28:12 -08:00
Vladimir Matveev
05ec43a0f3 make sure that enum values are computed before the emit 2015-01-23 12:04:55 -08:00
Vladimir Matveev
ad42afc4af resolve merge conflicts 2015-01-22 11:23:27 -08:00
Paul van Brenk
7bc8f1e9ca Merge branch 'master' into LessAggresiveCompletionList 2015-01-21 17:44:07 -08:00
Yui T
581beb58dc Merge branch 'master' into emitArrowFunctionES6 2015-01-21 10:36:32 -08:00
Paul van Brenk
832af682ed Builder in constructor aruguments + tests. 2015-01-20 15:26:14 -08:00
Paul van Brenk
4892381ab7 Merge branch 'master' into LessAggresiveCompletionList 2015-01-20 14:15:49 -08:00
Yui T
aa5e65a4e2 Remove old commit 2015-01-20 13:57:19 -08:00
Yui T
fbbc30f1df Address code review 2015-01-20 12:44:28 -08:00
Mohamed Hegazy
01267bc1f1 Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-01-19 20:18:41 -08:00
Paul van Brenk
8bcf376f2b Clean up 2015-01-19 17:01:39 -08:00
Yui T
15800b7d78 Merge branch 'master' into fixUnicodeComparisonTest262 2015-01-19 17:00:53 -08:00
Paul van Brenk
8c26917146 Fourslash support for the builder property on completion lists. 2015-01-19 16:57:06 -08:00
Yui T
c727efd323 Fix unicode comparision and counting error for test262 2015-01-19 15:48:40 -08:00
Mohamed Hegazy
66f8257fc8 Remove isOpen from souceFile and LanugageServiceHost interfaces 2015-01-16 21:23:51 -08:00