Commit Graph

347 Commits

Author SHA1 Message Date
Sheetal Nandi
0332feda6a Merge branch 'es6Import' into es6ImportDts 2015-02-10 19:09:00 -08:00
Sheetal Nandi
f8351c8865 Set the declarations of export assignment visible on demand through dts emit
Emit those new declarations asynchronously since they are otherwise not visible
2015-02-10 19:02:13 -08:00
Sheetal Nandi
00dc5fcce9 Add test cases for dts generation without export tag 2015-02-10 17:53:29 -08:00
Sheetal Nandi
0dfe4255c9 Test cases for export import syntax 2015-02-10 17:26:52 -08:00
Sheetal Nandi
863e73c75e Test case for emitting partial part of import syntax 2015-02-10 17:09:29 -08:00
Sheetal Nandi
c90f820b6c Enable test cases when import binding is used in export assignment directly or indirectly 2015-02-10 17:06:04 -08:00
Anders Hejlsberg
e8cc2bf5f7 Merge branch 'master' into es6Import 2015-02-10 16:17:50 -08:00
Sheetal Nandi
05fcdf0e30 Declaration for default bindings of the import syntax 2015-02-10 15:39:24 -08:00
Sheetal Nandi
f2a28a5975 Declaration emit for NamedImport syntax 2015-02-10 15:16:38 -08:00
Sheetal Nandi
96139ca4d8 Enable declaration emit for import * as ns from "mod" syntax 2015-02-10 14:36:54 -08:00
Sheetal Nandi
6ac1bcca08 Enable declaration emit for import "mod" syntax 2015-02-10 13:43:05 -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
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
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
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 5a7500ca5e 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
Jason Freeman
de3eb36b2c Update baselines 2015-01-19 16:36:50 -08:00
Jason Freeman
4a1851c7b8 Merge pull request #1562 from csnover/fix-1133
Ensure specialized signatures are always at the top when performing call candidate resolution
2015-01-13 17:33:57 -08:00
Vladimir Matveev
ecac4a519d disallow incorrect literal property names in indexed access for const enums 2015-01-12 10:58:21 -08:00