Commit graph

256 commits

Author SHA1 Message Date
Cyrus Najmabadi
cc1da37e72 Use a single member to represent a module reference. 2014-12-01 13:24:33 -08:00
Cyrus Najmabadi
ada6cebef3 Don't parse nodes, only to not include them in the tree. This will break incremental parsing scenarios.
Properly store the data for an external module reference in the AST.
2014-12-01 03:00:27 -08:00
Cyrus Najmabadi
7cc65ca73e Simplify the emitter. 2014-11-30 21:22:23 -08:00
Cyrus Najmabadi
aed8404b7d Simplify emitter. 2014-11-30 21:18:31 -08:00
Cyrus Najmabadi
16e28156e5 Support arbitrary numbers of implements and extends clauses (with arbitrary numbers of types) for classes and interfaces.
This vastly improves our error tolerance and messages for when the user writes an illegal heritage clause sequence.
2014-11-30 15:38:45 -08:00
Cyrus Najmabadi
5f15355372 Use brands for Class Elements. 2014-11-30 14:28:32 -08:00
Cyrus Najmabadi
0cdc824079 Provide brands for Declarations. 2014-11-30 14:21:34 -08:00
Cyrus Najmabadi
54bd524c90 Provide brands for statements.
Introduce a ModuleElement type to provide more clear typesafety.
2014-11-30 14:06:15 -08:00
Cyrus Najmabadi
5f00c7cdbc Change the names for property access and qualified names to match their types. 2014-11-29 17:25:52 -08:00
Cyrus Najmabadi
8989f1a782 Add greater typesafety in the expression portion of the syntax system.
Note: this change reveals that there is definitely some wonkyness going on
with nodes like FunctionLikeDeclaration.
2014-11-29 16:48:28 -08:00
Cyrus Najmabadi
e4b543981c Updating syntax kind names. 2014-11-29 15:58:55 -08:00
Cyrus Najmabadi
1d61ac5d5f Renaming syntax elements. 2014-11-29 15:52:46 -08:00
Cyrus Najmabadi
e1011aa2f0 Rename syntax properties to match Roslyn/Fidelity naming. 2014-11-29 15:47:02 -08:00
Cyrus Najmabadi
6a4927cef7 Provide unique nodes for void/typeof/delete expressions. 2014-11-29 13:43:30 -08:00
Jason Freeman
02dc56946e Merge branch 'master' into computedProperties 2014-11-26 20:12:04 -08:00
Cyrus Najmabadi
498a3274b8 Emit modules that contain only const enums, if the preserveConstEnum flag is provided. 2014-11-26 01:07:36 -08:00
Jason Freeman
17a09d1d36 Emit for computed properties 2014-11-25 16:08:55 -08:00
Sheetal Nandi
28c41e869a Merge branch 'master' into constLet 2014-11-20 21:06:08 -08:00
Sheetal Nandi
e101c2783c Merge branch 'release-1.3' 2014-11-20 20:32:36 -08:00
Sheetal Nandi
77572dab0c Merge remote-tracking branch release-1.3 2014-11-20 20:24:08 -08:00
Sheetal Nandi
0762e55286 Merge branch 'master' into constLet 2014-11-20 17:27:39 -08:00
Sheetal Nandi
763a1143ab Merge pull request #1122 from Microsoft/useTypeAnnotationInDeclarationsEmitter
Use type annotation in declarations emitter
2014-11-20 16:58:38 -08:00
Sheetal Nandi
4320c67a38 Merge branch 'master' into constLet 2014-11-20 16:56:14 -08:00
Sheetal Nandi
b7600006fb Write constructor type and function type annotation to adapt to new SyntaxKind introduced 2014-11-20 16:38:57 -08:00
Sheetal Nandi
f44d0c07d4 Merge branch 'master' into useTypeAnnotationInDeclarationsEmitter 2014-11-20 16:10:14 -08:00
Sheetal Nandi
ff23748908 Merge pull request #1131 from Microsoft/relativePathReferenceResolution
Fix the relative path reference resolution
2014-11-20 15:59:06 -08:00
Cyrus Najmabadi
6865265b45 Merge branch 'master' into grammarChecks 2014-11-20 13:07:45 -08:00
Daniel Rosenwasser
8d4e9064d0 Addressed CR feedback. 2014-11-19 22:11:17 -08:00
Cyrus Najmabadi
f605699604 Merge branch 'master' into grammarChecks
Conflicts:
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
2014-11-19 17:29:39 -08:00
Daniel Rosenwasser
f51a42c6de Fixed issue where template expression in call expressions would emit with unnecessary parentheses.
Fixes #1205.
2014-11-19 17:04:34 -08:00
Sheetal Nandi
264bd5db7c Merge branch 'master' into relativePathReferenceResolution 2014-11-19 13:11:17 -08:00
Cyrus Najmabadi
9170962998 Move declaration list checking to the grammar checks. 2014-11-19 02:11:17 -08:00
Yui T
df54db758a Merge branch 'master' into usingShorthand
Conflicts:
	bin/tsc.js
	bin/typescriptServices.js
	src/compiler/parser.ts
2014-11-18 18:25:51 -08:00
Yui T
970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Mohamed Hegazy
22e2bde7e9 Merge pull request #1158 from gisenberg/master
Adding support for named AMD modules.
2014-11-18 12:18:48 -08:00
Yui T
26a5e4333e Refactoring emitter using short-hand 2014-11-18 12:04:18 -08:00
Yui T
1b66ee6f3a Merge branch 'master' into shorthandProperty
Conflicts:
	src/compiler/checker.ts
2014-11-17 11:35:02 -08:00
Dick van den Brink
e7bb2e0ba7 Merge branch 'master' into warnaserror
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/harness/harness.ts
2014-11-16 22:02:00 +01:00
Yui T
880e958d11 Fix comment 2014-11-14 16:30:03 -08:00
Yui T
a8ebdf0cbd Address code review 2014-11-13 12:02:13 -08:00
Yui T
1888f736e1 Fix emit for shotr-hand assignment for module 2014-11-13 11:33:31 -08:00
Gabriel Isenberg
843d3ec7ca Added a compiler test for named AMD modules. 2014-11-13 11:00:06 -08:00
Sheetal Nandi
5e94f4a5c2 Code review feedback 2014-11-12 15:40:45 -08:00
Gabriel Isenberg
2302bd23ab Initial support for named AMD modules. 2014-11-12 11:45:43 -08:00
Sheetal Nandi
63a20863c1 Fix the relative path reference resolution
Fixes #1039
2014-11-11 23:06:45 -08:00
Sheetal Nandi
60f79da623 Show error for visibility only on the identifier resulting the error 2014-11-10 18:50:28 -08:00
Sheetal Nandi
c7bd7c9557 Remove unnecessary privacy errors for heritage and constraint type annotation 2014-11-10 18:34:59 -08:00
Sheetal Nandi
d6fb678222 Test cases for type alias declaration emit and privacy check.
Also removed the unnecessary error messages for type alias privacy check
2014-11-10 18:28:05 -08:00
Sheetal Nandi
ffdb0fc45d Show error about entity name visibility on entity name resulting in the error 2014-11-10 17:01:17 -08:00
Sheetal Nandi
9ba4d37d7b Emit the type annotation as it is in the declaration file if we have it 2014-11-10 17:01:05 -08:00