Commit Graph

69 Commits

Author SHA1 Message Date
Mohamed Hegazy
ce6681cc93 Support GetDefinitionLocation on module names and aliases for new import/export syntax 2015-02-23 15:43:20 -08:00
Anders Hejlsberg
f0f4ca6b06 Merge branch 'master' into es6Import
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/emitter.ts
	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_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
	tests/baselines/reference/recursiveClassReferenceTest.js.map
	tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt
2015-02-23 11:15:56 -08:00
Cyrus Najmabadi
eb5936b06f Merge branch 'master' into baseZero
Conflicts:
	src/harness/harnessLanguageService.ts
2015-02-20 16:56:58 -08:00
Cyrus Najmabadi
990bbb2dce CR feedback to use template strings. 2015-02-19 15:52:37 -08:00
Jason Freeman
5596993351 Merge branch 'master' into forOf
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	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_transform.js
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/APISample_watcher.types
2015-02-18 14:49:10 -08:00
Jason Freeman
1a3294a7d2 Parity sweep for for-in & for-of 2015-02-18 11:35:29 -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
8ba9180730 Remove the one based APIs. 2015-02-16 19:16:16 -08:00
Cyrus Najmabadi
1098e80f4b Remove one-based helper function. 2015-02-16 17:41:07 -08:00
Cyrus Najmabadi
8ef4df8acb Move the emitter over to using zero based indexing. 2015-02-16 17:34:11 -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
Anders Hejlsberg
79be0a7d26 Support for ES6 export declarations (except export default and export *) 2015-02-12 18:05:02 -08:00
Jason Freeman
18276e5267 Address feedback from @yuit 2015-02-10 16:13:28 -08:00
Anders Hejlsberg
3523233ae6 Rewrite named imports to reference properties on module instance 2015-02-10 14:59:20 -08:00
Anders Hejlsberg
e47f64c510 Checking of ES6 import declarations 2015-02-08 17:33:45 -08:00
Anders Hejlsberg
69bd05946a CommonJS emit for ES6 import declarations 2015-02-08 08:03:15 -08:00
Jason Freeman
35604426c8 Declaration emit for symbol properties 2015-02-06 21:32:54 -08:00
Jason Freeman
d07ed679a0 Support indexing with known symbols 2015-02-06 21:32:40 -08:00
Jason Freeman
e508bf7e86 Add symbol keyword 2015-02-06 21:32:02 -08:00
Jason Freeman
f344654460 Add named property symbol for known Symbol properties 2015-02-06 21:31:37 -08:00
Jason Freeman
07f3641af2 Update hasDynamicName to take well known symbols into account 2015-02-06 21:31:34 -08:00
Jason Freeman
d788624332 Move hasDynamicName to utilities.ts 2015-02-06 21:31:30 -08:00
Jason Freeman
39952b1a93 Syntactically allow computed properties everywhere if the name looks like a built in Symbol 2015-02-06 21:31:27 -08:00
Jason Freeman
11d75ef4ce Allow Symbol indexer in ES6 2015-02-06 21:31:20 -08:00
Anders Hejlsberg
7bd14a7895 Merge branch 'master' into es6importcheck
Conflicts:
	src/compiler/checker.ts
2015-02-06 14:36:36 -08:00
Anders Hejlsberg
930d11bc82 Cleaning up a few things 2015-02-06 13:50:30 -08:00
Cyrus Najmabadi
6ed9741a7a Extract common function. 2015-02-05 18:11:21 -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
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
35a6d0e68a Introduce an object to store and manage diagnostics for different compiler components. 2015-02-04 13:04:42 -08:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Vladimir Matveev
288e38fa36 merge with master 2015-02-03 11:26:39 -08:00
Sheetal Nandi
e0581899fa Rename existing import declaration to ImportEqualsDeclaration 2015-01-27 14:42:20 -08:00
Jason Freeman
b5349a5038 Disallow super and fix this capturing for computed properties 2015-01-19 16:37:17 -08:00
Jason Freeman
e317767966 Consolidate getSuperContainer 2015-01-19 16:37:14 -08:00
Jason Freeman
4cc2722700 Disallow this in computed properties in classes 2015-01-19 16:37:10 -08:00
Jason Freeman
7192767a00 Add type checking for computed properties in object literals 2015-01-19 16:36:39 -08:00
Vladimir Matveev
45ac06a0f2 move line map related function out of SourceFile 2015-01-16 12:02:12 -08:00
Daniel Rosenwasser
df4b3d2d37 Merge pull request #1547 from Microsoft/moveEmitHost
Moved EmitHost to utilities.ts so that it can be edited alone, and to fix resulting declaration file
2015-01-07 13:13:49 -08:00
Daniel Rosenwasser
f32683d231 Merge pull request #1529 from Microsoft/uninstantiatedModulesBeforeClasses
Allow uninstantiated modules before clodules
2015-01-07 12:40:50 -08:00
Daniel Rosenwasser
06d65c797d Moved EmitHost to utilities.ts 2015-01-07 12:37:46 -08:00
Daniel Rosenwasser
fac5201765 Only error on non-ambient instantiated modules preceding clodules. 2014-12-17 17:00:42 -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
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
8048163714 CR feedback. 2014-12-17 12:36:53 -08:00
Cyrus Najmabadi
7f893f9b9a Rename method to be clearer. 2014-12-16 18:50:34 -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