Commit graph

217 commits

Author SHA1 Message Date
Anders Hejlsberg 960d92f9b6 Default to all files only when none are specified in tsconfig.json 2015-01-15 17:12:45 -08:00
Anders Hejlsberg f9f95ba614 Support for tsconfig.json files in command-line compiler 2015-01-15 13:22:23 -08:00
Vladimir Matveev c25f3eb9a3 addressed CR feedback 2015-01-12 11:31:54 -08:00
Vladimir Matveev ecac4a519d disallow incorrect literal property names in indexed access for const enums 2015-01-12 10:58:21 -08:00
Lorant Pinter 47b8deb382 Show --noImplicitAny as an option to throw errors, not warnings
Fixes #1632
2015-01-11 11:14:06 +01:00
Daniel Rosenwasser 6fed3e2601 Merge pull request #1501 from Arnavion/no-emit
Add -noEmit compiler flag that skips the emit stage in ts.compile()
2014-12-17 18:00:33 -08:00
Cyrus Najmabadi 6a08c54f42 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/harness/fourslash.ts
2014-12-17 13:22:04 -08:00
Anders Hejlsberg 766756b4b1 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/parser.ts
2014-12-17 11:49:45 -08:00
Cyrus Najmabadi cd308e78ba Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/parser.ts
	tests/baselines/reference/FunctionDeclaration5_es6.errors.txt
	tests/baselines/reference/VariableDeclaration2_es6.errors.txt
	tests/baselines/reference/VariableDeclaration4_es6.errors.txt
	tests/baselines/reference/anonymousModules.errors.txt
	tests/baselines/reference/callSignaturesWithParameterInitializers2.errors.txt
	tests/baselines/reference/conflictMarkerTrivia1.errors.txt
	tests/baselines/reference/dottedModuleName.errors.txt
	tests/baselines/reference/innerModExport1.errors.txt
	tests/baselines/reference/innerModExport2.errors.txt
	tests/baselines/reference/parserAccessors10.errors.txt
	tests/baselines/reference/parserComputedPropertyName5.errors.txt
	tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt
	tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt
	tests/baselines/reference/parserModifierOnStatementInBlock2.errors.txt
	tests/baselines/reference/parserSkippedTokens16.errors.txt
	tests/baselines/reference/privateIndexer2.errors.txt
2014-12-16 21:50:10 -08:00
Arnavion 880e5c50d7 Don't allow -noEmit with -declaration 2014-12-16 20:25:20 -08:00
Arnavion df6aa85d4f Don't allow -noEmit with -out or -outDir 2014-12-16 20:25:20 -08:00
Arnavion dbe5cd0459 Add -noEmit compiler flag. 2014-12-16 20:25:19 -08:00
Yui T c2b03b6384 Address code review 2014-12-16 19:53:42 -08:00
Yui T d7f607234a COMPLETE migrating grammar checking; No more errors 2014-12-16 19:30:08 -08:00
Yui T 9ab59a4964 Merge branch 'master' into refactorGrammarCheck
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	src/compiler/types.ts
	tests/baselines/reference/YieldExpression8_es6.errors.txt
	tests/baselines/reference/ambientErrors.errors.txt
	tests/baselines/reference/giant.errors.txt
2014-12-16 17:38:40 -08:00
Yui T 8dc9f751a3 Complete grammar checking migration; there are still errors which will be fixed once pull master into the branch 2014-12-16 17:32:15 -08:00
Yui T a3e8b6c6d7 Move grammar checking: interfaceDeclaration-remove it from checkModifiers in parser; there are still errors from incomplete grammar migration 2014-12-16 13:47:57 -08:00
Yui T 003515655e Move grammar checking: methodDeclaration; there are still erros from incomplete grammar migration 2014-12-16 12:51:42 -08:00
Yui T 7a4d8cd8ee Move grammar checking: setAccessor, getAccessor; there are still erros from incomplete grammar migration 2014-12-16 12:25:05 -08:00
Yui T 60eb37df94 Move grammar checking: declare keyword in checkGrammarModifier; there are still erros from incomplete grammar migration 2014-12-15 14:51:52 -08:00
Yui T 98cb805f13 Move grammar check: throwStatement; there are still errors from incomplete grammar migration 2014-12-14 22:50:58 -08:00
Yui T b388eb3c2a Move grammar checking: taggedTemplateExpression 2014-12-14 21:12:14 -08:00
Yui T a4f17b1417 Move grammar checking: switchStatement; there are still errors from incomplete grammar migration 2014-12-14 19:57:12 -08:00
Yui T c5b9c07542 Move grammar checking: propertyAssignment; there are still errors from incomplete grammar migration 2014-12-12 17:00:35 -08:00
Anders Hejlsberg b416cbc599 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
2014-12-12 14:32:53 -08:00
Yui T 00449d80a3 Merge disallow computed property grammar error; there are still errors from generator and the fact that other grammar check haven't moved yet 2014-12-12 12:47:19 -08:00
Jason Freeman 8be44f111c Don't quote the word 'generators' in error messages
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
2014-12-12 10:41:21 -08:00
Jason Freeman 867e2a8b6f Disable computed properties in TypeScript 1.4
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-12-12 10:35:01 -08:00
Cyrus Najmabadi f218ce7684 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	tests/baselines/reference/APISample_node_compile.js
	tests/baselines/reference/APISample_node_compile.types
	tests/baselines/reference/APISample_standalone_compile.js
	tests/baselines/reference/APISample_standalone_compile.types
2014-12-12 00:52:07 -08:00
Anders Hejlsberg a42df7547e Rest element support in array destructuring declarations 2014-12-11 18:27:08 -08:00
Cyrus Najmabadi 0391e02fee Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
	src/services/formatting/tokenSpan.ts
	src/services/text.ts
2014-12-11 18:08:57 -08:00
CyrusNajmabadi 122d8a4d98 Merge pull request #1456 from Microsoft/mergeMarkers
Make the compiler resilient to encountering merge conflict markers in a source code file.
2014-12-11 18:04:25 -08:00
Anders Hejlsberg 6babef417f Rest element support in array literal destructuring assignment 2014-12-11 17:41:24 -08:00
Jason Freeman 7f097140c9 Merge branch 'release-1.4' 2014-12-11 17:29:03 -08:00
Jason Freeman 06d7ef14cf Don't quote the word 'generators' in error messages 2014-12-11 17:22:22 -08:00
Cyrus Najmabadi 7df3a407c2 Make the compiler resilient to encountering merge conflict markers in a source code file. 2014-12-11 16:56:10 -08:00
Jason Freeman d385f2ebf4 Disable computed properties in TypeScript 1.4 2014-12-11 16:49:53 -08:00
Daniel Rosenwasser d92d6379bd Merge branch 'release-1.4' into mergeFor1.4ToMaster
Conflicts:
	src/compiler/parser.ts
	src/compiler/utilities.ts
	src/harness/harness.ts
	tests/baselines/reference/APISample_node_compile.js
	tests/baselines/reference/APISample_node_compile.types
	tests/baselines/reference/APISample_standalone_compile.js
	tests/baselines/reference/APISample_standalone_compile.types
	tests/cases/compiler/APISample_node_compile.ts
	tests/cases/compiler/APISample_standalone_compile.ts
2014-12-11 14:49:43 -08:00
Yui T 907d1d001b Move grammar checking: callExpression, newExpression 2014-12-11 12:07:01 -08:00
Yui T 547e1296f8 Move grammar checking: Arrow function 2014-12-10 21:52:18 -08:00
Cyrus Najmabadi fc27f72324 Understand and handle modifiers on function declarations and variable statements within blocks.
This ensures reusability for functions/variables that may have been outside a block, but end up
inside one afterwards.  It also ensure the same tree is produced when incremental parsing.

i.e.  if you have:

declare function F() { }

And you add a { above it, then we current have an incremental parsing bug.  Namely we would see
a FunctionDeclaration node and say 'yes, we can reuse that node while parsing the block'.  This
is currently broken because the normal parse would not have normally accepted such a node (because
of the modifiers).

This was an example of contextual parsing of the same kind of node.  Something which we do not
want to do if we want incremental parsing to work properly.
2014-12-10 18:52:56 -08:00
Yui T 16693316e5 Add isEarly flag into error from grammar checking 2014-12-10 18:34:38 -08:00
Mohamed Hegazy d2c7c01ff3 Respond to code review commments 2014-12-10 17:51:14 -08:00
Yui T 03f9203a42 Move grammar checking: tuple type 2014-12-10 12:42:34 -08:00
Mohamed Hegazy b0574cbdf9 Respond to code review comments 2014-12-10 12:37:09 -08:00
Yui T 2c575dae27 Move grammar checking: type parameters 2014-12-09 16:33:20 -08:00
Mohamed Hegazy 0a1eabc9aa Add new compiler flag to suppress noImplicitAny errors for object access 2014-12-09 14:08:44 -08:00
Anders Hejlsberg 816abb19e4 Merge branch 'master' into destructuring
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/emitter.ts
	src/compiler/parser.ts
	src/compiler/types.ts
	src/services/navigationBar.ts
	tests/baselines/reference/assignmentLHSIsValue.errors.txt
	tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
	tests/baselines/reference/parserErrorRecovery_ParameterList2.errors.txt
2014-12-03 16:43:01 -08:00
Cyrus Najmabadi f8f314868b Merge branch 'master' into lessDirectCallsToError
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-12-01 17:42:59 -08:00
Cyrus Najmabadi df4f9044d9 Make sure we have an appropriate error for heritage clause lists. 2014-12-01 17:07:13 -08:00