Commit Graph

360 Commits

Author SHA1 Message Date
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
Mohamed Hegazy
d6bd9f74d2 Merge branch 'master' into LSAPICleanup 2015-02-02 18:49:13 -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
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
Yui T
581beb58dc Merge branch 'master' into emitArrowFunctionES6 2015-01-21 10:36:32 -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
Yui T
15800b7d78 Merge branch 'master' into fixUnicodeComparisonTest262 2015-01-19 17:00:53 -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
Jason Freeman
ca9cd9af2b Change sys to ts.sys in instrumenter 2015-01-16 15:25:39 -08:00
Vladimir Matveev
c40977c5fb move getSyntacticDiagnostics out of SourceFile 2015-01-16 12:32:37 -08:00
Vladimir Matveev
45ac06a0f2 move line map related function out of SourceFile 2015-01-16 12:02:12 -08:00
Yui T
ffbdf46f25 Address code review 2015-01-15 09:56:43 -08:00
Mohamed Hegazy
3434aa0bdd Remove getDefaultLibFilename from the LS host interface as its result is never honored by the LS.
The LS operate only on a fixed list of files initialized by the host's getScriptFileNames(), if a file is not in this list, it will not be queried from the host, rather considered a missing file. Thus the result of getDefaultLibFilename()is either in the list, or will be ignored.
2015-01-14 17:20:27 -08:00
Yui T
6e8957da34 Pass information of rwc's currentDirectory to the compiler host in the Harness 2015-01-14 16:28:10 -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
Jason Freeman
7518d15620 Remove unnecessary it block in generated .d.ts compilation in harness 2015-01-05 18:26:09 -08:00
Jason Freeman
6f6c46a99f Use getSourceFile instead of getSourceFiles in compileDeclarationFiles 2015-01-05 18:25:28 -08:00
Cyrus Najmabadi
ef2087add5 Merge branch 'master' into layering 2014-12-18 12:20:32 -08:00
Cyrus Najmabadi
b37b98138d Merge branch 'master' into layering
Conflicts:
	src/compiler/checker.ts
	src/compiler/utilities.ts
2014-12-17 15:35:30 -08:00
Daniel Rosenwasser
ec64c0f929 Fixed 'verifyDefinitionsName' to check the container name properly. 2014-12-17 15:11:33 -08:00
Daniel Rosenwasser
af4d7d3ff4 Added goToDef count verification in fourslash facilities. 2014-12-17 15:11:31 -08:00
Cyrus Najmabadi
6a08c54f42 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/harness/fourslash.ts
2014-12-17 13:22:04 -08:00
Cyrus Najmabadi
4545549e07 Disable incremental by default before merging into master. 2014-12-17 12:41:08 -08:00
Anders Hejlsberg
766756b4b1 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/parser.ts
2014-12-17 11:49:45 -08:00
Cyrus Najmabadi
f459951431 Merge branch 'diagnostics' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
2014-12-16 23:48:00 -08:00
Cyrus Najmabadi
5df0ca529e Merge branch 'master' into layering
Conflicts:
	src/compiler/checker.ts
	src/compiler/parser.ts
2014-12-16 23:15:57 -08:00
Cyrus Najmabadi
2748a5b163 Remove 'grammarDiagnostics' from SourceFile. 2014-12-16 23:00:14 -08:00
Cyrus Najmabadi
cd308e78ba Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/parser.ts
	tests/baselines/reference/FunctionDeclaration5_es6.errors.txt
	tests/baselines/reference/VariableDeclaration2_es6.errors.txt
	tests/baselines/reference/VariableDeclaration4_es6.errors.txt
	tests/baselines/reference/anonymousModules.errors.txt
	tests/baselines/reference/callSignaturesWithParameterInitializers2.errors.txt
	tests/baselines/reference/conflictMarkerTrivia1.errors.txt
	tests/baselines/reference/dottedModuleName.errors.txt
	tests/baselines/reference/innerModExport1.errors.txt
	tests/baselines/reference/innerModExport2.errors.txt
	tests/baselines/reference/parserAccessors10.errors.txt
	tests/baselines/reference/parserComputedPropertyName5.errors.txt
	tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt
	tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt
	tests/baselines/reference/parserModifierOnStatementInBlock2.errors.txt
	tests/baselines/reference/parserSkippedTokens16.errors.txt
	tests/baselines/reference/privateIndexer2.errors.txt
2014-12-16 21:50:10 -08:00
Cyrus Najmabadi
9df59c39ee Change TextChangeRange to be a record type as well. 2014-12-16 18:40:15 -08:00
Cyrus Najmabadi
7f3a73b7c8 Change 'TextSpan' to be a simple record type with free floating functions. 2014-12-16 18:31:06 -08:00
Anders Hejlsberg
fab94d84e5 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/parser.ts
2014-12-16 18:09:21 -08:00
Cyrus Najmabadi
f1a2e41a8a Sort diagnostics in our baseline output.
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.

This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -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
b665323d45 Make the emitter no longer depend on the Program.
This breaks layering.  Also, it means the emitter depends on too large a surface area.
Now the emitter declares exactly what it needs, and only gets that.
2014-12-16 13:52:47 -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