821 Commits

Author SHA1 Message Date
Cyrus Najmabadi
ec9e461869 Remove 'strict mode' from parsing and checking, and make it purely something purely checked at bind time. 2015-06-15 17:31:15 -07:00
Mohamed Hegazy
224e7630ea use namespaces instead of modules in the codebase 2015-06-12 09:01:48 -07:00
Jason Freeman
380918c497 Add comments 2015-06-10 17:20:51 -07:00
Jason Freeman
635a773186 Unite ParsingContext.ModuleElements and ParsingContext.BlockStatements 2015-06-10 16:41:48 -07:00
Jason Freeman
32d57d900b Remove the ModuleElement type in favor of Statement 2015-06-10 11:26:51 -07:00
Jason Freeman
10fccc578e Improve error recovery after a dot 2015-06-09 18:09:14 -07:00
Jason Freeman
cc9bf13ffd Some cleanup and renaming 2015-06-09 17:12:12 -07:00
Jason Freeman
d01a9667fc Convert StatementFlags to a boolean 2015-06-09 16:57:42 -07:00
Jason Freeman
75ed565f81 Don't consume 'is' keyword if there is a preceding line terminator 2015-06-09 11:12:00 -07:00
Anders Hejlsberg
cd59573908 Merge branch 'master' into genericTypeAliases
Conflicts:
	src/compiler/checker.ts
2015-06-09 06:28:56 -07:00
Tingan Ho
efb701387e Merge commits from master 2015-06-09 07:43:05 +08:00
Daniel Rosenwasser
6b77c24753 Merge pull request #3365 from Microsoft/painInTheASI
Parse namespaces/types aliases/interfaces/ambient declarations only when they cannot be legal JS
2015-06-08 10:27:15 -07:00
Anders Hejlsberg
9c6e6acf97 Support generic type aliases 2015-06-05 14:28:57 -07:00
Tingan Ho
fa9a914648 Adds error for non-return positioned type predicates and changed parse type predicate logic 2015-06-05 16:36:02 +08:00
Daniel Rosenwasser
3d9293e0de Moved lookahead logic into 'getDeclarationFlags'. 2015-06-04 18:08:11 -07:00
Daniel Rosenwasser
10861b1648 Amended comment. 2015-06-04 16:29:12 -07:00
Daniel Rosenwasser
047d3aef19 Account for interfaces. 2015-06-04 15:08:56 -07:00
Tingan Ho
e1f82c599b Removes old type predicate functions 2015-06-04 20:04:17 +08:00
Tingan Ho
19e725636e Adds PR feedback and removed references to typeguard (class) methods 2015-06-04 19:31:16 +08:00
Vladimir Matveev
7e3a3f45e1 emit module name for system modules, add moduleName argument to 'transpile' function 2015-06-03 14:55:42 -07:00
Daniel Rosenwasser
64a31e2e51 Renamed functions, removed the duplicates found from renaming. 2015-06-03 13:51:53 -07:00
Daniel Rosenwasser
3fe308d2a6 Added an explanation for the lookahead. 2015-06-03 13:46:13 -07:00
Daniel Rosenwasser
3cac56af1a Fixed case for the 'declare' keyword. 2015-06-03 12:05:12 -07:00
Tingan Ho
b7d1df68fb Adds type guard methods 2015-06-03 16:58:56 +08:00
Tingan Ho
9515947092 Adds custom type guard 2015-06-03 16:58:55 +08:00
Cyrus Najmabadi
be97bd250c Merge branch 'master' into jsDocClassification 2015-06-02 13:48:56 -07:00
Anders Hejlsberg
a2783edbeb Merge branch 'master' into localTypes 2015-05-30 11:32:59 -07:00
Jason Freeman
059bb18bac Merge branch 'master' of https://github.com/Microsoft/TypeScript into generators
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	tests/baselines/reference/emitArrowFunctionWhenUsingArguments14_ES6.symbols
	tests/baselines/reference/emitArrowFunctionWhenUsingArguments15_ES6.symbols
	tests/baselines/reference/emitArrowFunctionWhenUsingArguments16_ES6.symbols
	tests/baselines/reference/emitArrowFunctionWhenUsingArguments17_ES6.symbols
	tests/baselines/reference/emitArrowFunctionWhenUsingArguments18_ES6.symbols
	tests/baselines/reference/for-of37.symbols
	tests/baselines/reference/for-of38.symbols
	tests/baselines/reference/for-of40.symbols
	tests/baselines/reference/for-of45.symbols
	tests/baselines/reference/for-of50.symbols
	tests/baselines/reference/iterableArrayPattern30.symbols
	tests/baselines/reference/promiseVoidErrorCallback.symbols
	tests/baselines/reference/typedArrays.symbols
2015-05-29 17:14:29 -07:00
Jason Freeman
faac853b64 Address PR feedback for generators 2015-05-29 17:03:05 -07:00
Anders Hejlsberg
26b955a4ac Addressing more CR feedback 2015-05-29 08:59:38 -07:00
Cyrus Najmabadi
0f3584e9cc Removing unnecessary code. 2015-05-28 15:04:08 -07:00
Cyrus Najmabadi
caddec902a Remove uneeded code. 2015-05-28 14:58:22 -07:00
Cyrus Najmabadi
64c7f3d38b Add syntactic classification for doc comments. 2015-05-28 14:45:43 -07:00
Cyrus Najmabadi
9aab98419b Parsing support for jsDocComments. 2015-05-28 10:14:18 -07:00
Anders Hejlsberg
50ebc2bf8a Addressing CR feedback 2015-05-26 16:38:17 -07:00
Anders Hejlsberg
df9378e2d3 Allow local interface, type alias, and enum declarations 2015-05-23 16:50:28 -07:00
Anders Hejlsberg
375516e6dc Consistent formatting of optional argument comments 2015-05-23 11:43:34 -07:00
Anders Hejlsberg
af8aefd467 Single function to parse statements and module elements 2015-05-23 11:41:31 -07:00
Jason Freeman
6037780159 Merge branch 'master' of https://github.com/Microsoft/TypeScript into generators 2015-05-19 15:08:41 -07:00
Jason Freeman
cb198aa7f2 Disallow yield expressions inside a class 2015-05-11 17:40:38 -07:00
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