Commit Graph
781 Commits
Author SHA1 Message Date
Jason Freeman 029fbb0d4f Remove nextTokenCanFollowContextualModifier 2015-05-11 13:27:07 -07:00
Daniel Rosenwasser 4ebfee2051 Use 'lastOrUndefined' where appropriate in the compiler. 2015-05-01 18:34:26 -07:00
Paul van Brenk 54ef1bf93d Rename HeritageClauseElement to ExpressionWithTypeArguments + related methods. 2015-04-29 14:49:03 -07:00
Anders Hejlsberg eecf7ba638 Support 'namespace' declarations for internal modules 2015-04-26 16:12:16 -07:00
Jason Freeman 4487fa426b Rename iterator property of ForStatement to incrementor 2015-04-22 13:29:50 -07:00
Daniel Rosenwasser 62036758a8 Merge pull request #2809 from Microsoft/noReservedWordsInBindingPatterns
Disallow reserved words for object binding pattern names
2015-04-17 17:06:50 -07:00
CyrusNajmabadi ec574c337e Merge pull request #2820 from Microsoft/scannerLength
Support passing a start/length when creating a scanner.
2015-04-17 13:56:21 -07:00
Cyrus Najmabadi 9e507baf7c Support passing a start/length when creating a scanner.
Conflicts:
	src/compiler/parser.ts
	src/compiler/scanner.ts
2015-04-17 12:27:24 -07:00
Cyrus Najmabadi c2e178ee51 CR feedback. 2015-04-17 12:06:21 -07:00
Daniel Rosenwasser e36f47ab7e Expect a colon if the property was a reserved word. 2015-04-16 16:39:32 -07:00
Cyrus Najmabadi b51230f794 CR feedback. Use a module instead. 2015-04-15 16:16:45 -07:00
Cyrus Najmabadi 4e0c26347f Use const. 2015-04-12 22:47:25 -07:00
Cyrus Najmabadi 362320dc45 Use a singleton parser as well. 2015-04-12 14:25:19 -07:00
Cyrus Najmabadi 61951e5d94 Use a single scanner for all parsing tasks. 2015-04-12 14:02:58 -07:00
Yui T 63a2359d1a Merge branch 'master' into migrateStrictModeCheck 2015-04-11 21:02:56 -07:00
Yui T a60cf02715 Address CR 2015-04-10 19:00:31 -07:00
Mohamed Hegazy f231d6aba8 Merge pull request #2700 from Microsoft/removeOptionalTypeOnExportDefault
Remove optional type on export default
2015-04-10 15:31:31 -07:00
Yui T 5bab826c6b Address issue with propertyAccessExpression and QualifiedName in TypeReference 2015-04-10 14:23:54 -07:00
Ron Buckton 042b96592a Merge branch 'master' into fixArrowBindingPattern 2015-04-10 09:54:13 -07:00
Ron Buckton 02d88f2968 Simpler lookahead, let the tryParse do the hard work 2015-04-10 09:53:21 -07:00
Ron Buckton 9636142733 Comment cleanup 2015-04-09 17:47:56 -07:00
Ron Buckton 19695f9bca Simplified lookahead and added ES6 test cases 2015-04-09 17:45:45 -07:00
Yui T 33d6a81a35 update property in Identifier 2015-04-09 16:50:43 -07:00
Mohamed Hegazy afe35c810a Revert "Support an optional type annotation on export default statement"
This reverts commit a6a8a96249.
2015-04-09 16:32:23 -07:00
Ahmad Farid a34801f30b merging with master 2015-04-09 16:05:06 -07:00
Yui T 8adac94896 Better recovery when running into modifier 2015-04-09 15:59:37 -07:00
Yui T e91ef844ed Address code review; better error recovering 2015-04-09 14:49:47 -07:00
Yui T 4b7d2f2411 Address code review 2015-04-09 14:46:02 -07:00
Yui T 111a297584 Check for import, import equal, module 2015-04-08 22:07:12 -07:00
Yui T fb9009f741 Completely remove check strict mode from parser 2015-04-08 22:07:02 -07:00
Yui T c93fb35c53 Move strict mode check into TypeChecker 2015-04-08 22:06:51 -07:00
Ron Buckton 0546042df3 Add support for parsing destructuring patterns in arrow function parameter lists 2015-04-08 18:01:21 -07:00
Yui T 742f65c80b Merge branch 'master' into parseClassInStrictMode
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-04-03 17:23:02 -07:00
Ahmad Farid d94c7bf978 Merge branch 'master' of https://github.com/Microsoft/TypeScript into outlineComments 2015-04-02 16:55:03 -07:00
Paul van Brenk 548e33c663 Merge branch 'master' into spelling 2015-04-02 15:37:37 -07:00
Paul van Brenk 0bf65e4c67 Fix annoying spellin errors. 2015-04-02 15:36:45 -07:00
Ahmad Farid 27f349ca7d outlining Comments v0.1 4/2 2015-04-02 14:38:22 -07:00
Yui T 64427a9df1 Remove checking for scriptTarget before setting parsing context for classLikeDeclaration 2015-04-02 13:41:03 -07:00
unknown ba8be9eef4 Support classes without names in our AST. Report any issues with this at 'check' time. 2015-04-01 17:20:20 -07:00
Cyrus Najmabadi b363a459ff Add support for semicolons in class bodies 2015-03-31 14:29:45 -07:00
Cyrus Najmabadi f7aaf09603 Add support for parsing and emitting class expressions. 2015-03-31 13:54:43 -07:00
Cyrus Najmabadi a1e18fc22b Introduce a new HeritageClauseElment type.
This type represents the expression+type arguments you can get in a class or interface
heritage clause section.  For class-implements clauses, or interface-extends clauses,
these expressions can only be identifiers or dotted names.  For class extends clauses,
these could be any expressions in the future.  However, for now, we only support identifiers
and dotted names.
2015-03-31 12:29:02 -07:00
Mohamed Hegazy fad889283e Merge branch 'master' into exportEqualsMerged
Conflicts:
	src/compiler/checker.ts
	src/compiler/emitter.ts
	src/compiler/types.ts
	tests/baselines/reference/APISample_compile.js
	tests/baselines/reference/APISample_linter.js
	tests/baselines/reference/APISample_transform.js
	tests/baselines/reference/APISample_watcher.js
	tests/baselines/reference/es5ExportDefaultClassDeclaration2.js
	tests/baselines/reference/es5ExportDefaultFunctionDeclaration2.js
	tests/baselines/reference/es6ExportAllInEs5.js
	tests/baselines/reference/es6ExportClauseWithoutModuleSpecifierInEs5.js
2015-03-25 00:06:38 -07:00
Mohamed Hegazy f90253f73e Merge branch 'master' into exportEquals
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/emitter.ts
	tests/baselines/reference/es6ImportDefaultBinding.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImportInEs5.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.errors.txt
	tests/baselines/reference/es6ImportDefaultBindingInEs5.errors.txt
2015-03-23 11:06:44 -07:00
Anders Hejlsberg 57a9fc54c8 Separate 'export default' and 'export =' 2015-03-21 13:12:39 -07:00
Ron Buckton 0fb624a58b PR feedback 2015-03-19 22:57:03 -07:00
Ron Buckton 8282a0b9ca Parser updates for decorators 2015-03-17 14:17:33 -07:00
Yui c4cb3e3483 Merge pull request #2333 from Microsoft/emitClass
Class emit for ES6
2015-03-16 17:40:03 -07:00
Yui T 513b45d101 Merge branch 'master' into emitClass
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/emitter.ts
	src/compiler/parser.ts
2015-03-16 15:55:57 -07:00
Yui T 88933d54cc Address code review 2015-03-16 15:20:40 -07:00