Commit Graph

767 Commits

Author SHA1 Message Date
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
Mohamed Hegazy 696b688987 Merge branch 'master' into exportDefaultType
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2015-03-16 14:42:47 -07:00
Mohamed Hegazy 7430f3c9c7 Merge branch 'master' into exportDefaultType
Conflicts:
	src/compiler/checker.ts
2015-03-15 14:23:40 -07:00
Caitlin Potter 02d356800f Share SourceFile with other grammar checker that needs it 2015-03-14 20:12:10 -04:00
Yui T 13e55ae8cb Address code review 2015-03-14 16:53:33 -07:00
Caitlin Potter 3dc5faf707 Restore earlier behaviour when parsing non-simple arrow function bodies 2015-03-14 19:51:42 -04:00
Caitlin Potter bd828e3024 Parse arrow function body as identifier if missing => or {
Restores functionality broken in previous commit
2015-03-14 19:51:42 -04:00
Caitlin Potter 5e107e6042 Address slew of review comments 2015-03-14 19:51:41 -04:00
Caitlin Potter aa3cefb63d Check that arrow is on same line as parameters 2015-03-14 19:51:41 -04:00
Caitlin Potter dd16fed21e Perform error reporting in checker 2015-03-14 19:50:55 -04:00
Caitlin Potter 84634ac25d Disallow line terminator after arrow function parameters, before =>
Closes #2282
2015-03-14 19:50:24 -04:00
Cyrus Najmabadi 898b6d57e7 Merge branch 'master' into forOf 2015-03-13 13:40:32 -07:00
Cyrus Najmabadi e1edf4ad99 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2015-03-13 13:40:23 -07:00
Vladimir Matveev e46442f45f addressed PR feedback: fixed typo in function name 2015-03-13 12:08:58 -07:00
Cyrus Najmabadi 0f498ab414 Use 'let' in the parser. 2015-03-13 10:59:25 -07:00