350 Commits

Author SHA1 Message Date
CyrusNajmabadi
e26de71d9c Merge pull request #2109 from Microsoft/sideEffects
Emit downlevel parameter initializers unless we are certain they don't have any side effects.
2015-02-23 15:43:56 -08:00
CyrusNajmabadi
eaba1804f0 Merge pull request #1971 from Microsoft/commaSeparator
Allow commas as a separator between object/interface type members.
2015-02-23 15:43:41 -08:00
Cyrus Najmabadi
cfe3bb8f8d Merge branch 'master' into sideEffects
Conflicts:
	tests/baselines/reference/recursiveClassReferenceTest.js.map
2015-02-23 14:00:56 -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
53ed427e0d Emit parameter initializers unless we are certain they don't have any side effects. 2015-02-22 18:01:57 -08:00
Cyrus Najmabadi
8c90fc6bc8 Merge branch 'master' into binaryExpressionEmit
Conflicts:
	src/compiler/checker.ts
2015-02-20 21:28:15 -08:00
Cyrus Najmabadi
fc229368d1 Include the binary expression's operator in the AST. 2015-02-20 18:56:42 -08:00
Cyrus Najmabadi
a83534a72c Fix up API samples. 2015-02-16 19:55:32 -08:00
Vladimir Matveev
a9df539b7e added check that var and let\const cannot share scope, added check that var is not shadowed by the let\const from the inner scope 2015-02-12 16:37:07 -08:00
togru
d94cbed413 Merge remote-tracking branch 'upstream/master' 2015-02-11 10:12:22 +01:00
Anders Hejlsberg
e8cc2bf5f7 Merge branch 'master' into es6Import 2015-02-10 16:17:50 -08:00
Vladimir Matveev
f29d931bd9 disallow let to be used as name in let\const in ES6 2015-02-10 13:36:24 -08:00
togru
36990570c4 Added AMD dependency reordering, so import order matches with provided names 2015-02-09 08:44:34 +01:00
Cyrus Najmabadi
449f4a4f37 Have better error recovery for whne a user uses semicolons instead of commas to delimit an object literal. 2015-02-06 17:30:29 -08:00
Cyrus Najmabadi
c03c9a42fd Allow commas as a separator between object/interface type members. 2015-02-06 15:55:14 -08:00
Anders Hejlsberg
7bd14a7895 Merge branch 'master' into es6importcheck
Conflicts:
	src/compiler/checker.ts
2015-02-06 14:36:36 -08:00
Cyrus Najmabadi
66a363f449 Simplify the API for emitting and reporting exit statuses to callers. 2015-02-05 15:50:18 -08:00
togru
9974526101 updated code style, added tests, fixed regex bug, merged to latest branch 2015-02-05 12:07:00 +01: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
2a1d78d9e3 Simplify the createProgram API.
Allow the host parameter to be optional to simplify command line programs.
2015-02-04 17:02: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
5b049feb36 Hide the diagnostic producing methods from TypeChecker.
Instead, consumers should get these diagnostics through the Program instance.
2015-02-04 14:29:25 -08:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Cyrus Najmabadi
2ee134c6b3 Remove certain lazyily initialized fields from the public DTS.
These should not be accessed directly.  They should be obtained by calling into the appropriate
helper functions.
2015-02-03 13:47: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
Mohamed Hegazy
277235539a Merge branch 'master' into LSAPICleanup 2015-02-02 17:14:08 -08:00
Mohamed Hegazy
6807bf86a5 Merge pull request #1855 from stanthomas/master
issue #1833 : const enum: supress value comment in emitted javascript
2015-02-02 16:35:11 -08:00
Stan Thomas
79e3bedb36 declare variable type inenum test 2015-02-02 17:48:35 -05:00
Mohamed Hegazy
8524bfc5ca Merge branch 'master' into LSAPICleanup 2015-02-02 13:55:45 -08:00
Daniel Rosenwasser
e174fe4f47 Merge pull request #1575 from chrisbubernak/betterErrorsForTypesWithSameName
Better errors for types with same name
2015-01-30 21:08:48 -08:00
Mohamed Hegazy
9a6e3ad52d Merge branch 'master' into LSAPICleanup
Conflicts:
	src/services/services.ts
2015-01-30 16:29:45 -08:00
Stan Thomas
0b435f56ee test case for TS generated comments const enum to show that they are supressed by removeComments flag 2015-01-29 18:27:26 -05:00
Sheetal Nandi
484144bf98 More test cases for incorrect named modules specification 2015-01-29 14:30:28 -08:00
Sheetal Nandi
89d0146b1c Tests for more combination of import specifier list 2015-01-29 14:20:03 -08:00
Sheetal Nandi
fc912729f5 Some refactoring of how import specifiers are parsed as per code review feedback 2015-01-29 14:14:05 -08:00
Ryan Cavanaugh
b7824e8de4 Merge remote-tracking branch 'origin/master' into elaborateErrorsOnce 2015-01-29 11:27:39 -08:00
Mohamed Hegazy
5fa30e550c Add API sample tests 2015-01-29 11:23:02 -08:00
Sheetal Nandi
69fef6e544 Parsing for default binding import syntax 2015-01-27 16:43:46 -08:00
Sheetal Nandi
5eb009461e Parsing for NamedImports
NamedImports :
{ }
{ ImportsList }
{ ImportsList , }

ImportsList :
ImportSpecifier
ImportsList , ImportSpecifier

ImportSpecifier :
ImportedBinding
IdentifierName as ImportedBinding

Conflicts:
	src/compiler/parser.ts
2015-01-27 16:28:28 -08:00
Sheetal Nandi
fdd7032c61 Parsing for import * as ImportedBinding 2015-01-27 16:16:31 -08:00
Sheetal Nandi
4f1b908212 Parse import ModuleSpecifier; 2015-01-27 16:16:27 -08:00
Daniel Rosenwasser
40796b2c6d Added more tests. 2015-01-27 14:42:39 -08:00
Daniel Rosenwasser
8ee09dbe6e Addressed Jason's pedantic correction over the wording of a comment. 2015-01-27 13:36:10 -08:00
Jason Freeman
ca8c446d3f Use transient symbols when computing the indexers for object literals 2015-01-26 16:48:53 -08:00
Jason Freeman
eeb4dc447b Merge branch 'master' into computedProperties 2015-01-21 15:51:31 -08:00
Sheetal Nandi
4d1182401c Type alias declaration is type only declaration and doesnt make module instantiated
Handles #1724
2015-01-21 11:18:42 -08:00
Jason Freeman
b022ccd430 Merge branch 'master' into computedProperties
Conflicts:
	src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Sheetal Nandi
e8e2356afa Fixes the emit of comment when comment ends on last line
This fixes regression from 5a7500ca5e62d7e6c7863cf42d156e8bcdc3017c with addition of eof token
Handles #1714
2015-01-20 21:16:14 -08:00
Ryan Cavanaugh
fa239326f0 Elaborate relational errors at least once when reporting them 2015-01-20 14:18:22 -08:00