Commit graph

238 commits

Author SHA1 Message Date
Jason Freeman
11d75ef4ce Allow Symbol indexer in ES6 2015-02-06 21:31:20 -08:00
Jason Ramsay
953e568d9e Disallow rename for elements that are defined in the standard TypeScript library. 2015-02-05 13:32:33 -08:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Cyrus Najmabadi
838b9b6998 Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'. 2015-02-03 13:15:28 -08:00
Cyrus Najmabadi
dd8d3535ff Remove the concept of early errors from the compiler.
Currently only parse errors prevent emitting (And this will be changed in the next
code review as well).
2015-02-02 15:14:19 -08:00
Yui T
6a0eaf52bf Update an error 2015-01-30 16:51:12 -08:00
Yui T
cf5aadb28d Address code review 2015-01-30 12:20:21 -08:00
Yui T
ca3c1ed543 Address the issue that arrow function doesn't have arguments objects 2015-01-28 16:10:15 -08:00
Jason Freeman
768d818d27 Fix error message wording 2015-01-21 15:05:19 -08:00
Jason Freeman
b022ccd430 Merge branch 'master' into computedProperties
Conflicts:
	src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Jason Freeman
89f36bb9c5 Disallow computed properties referencing type parameters from containing type 2015-01-19 18:44:15 -08:00
Jason Freeman
b5349a5038 Disallow super and fix this capturing for computed properties 2015-01-19 16:37:17 -08:00
Jason Freeman
4cc2722700 Disallow this in computed properties in classes 2015-01-19 16:37:10 -08:00
Jason Freeman
7192767a00 Add type checking for computed properties in object literals 2015-01-19 16:36:39 -08:00
Jason Freeman
15187e5e1d Enable computed properties 2015-01-19 16:36:28 -08:00
Anders Hejlsberg
a2ecaf60f0 Merge branch 'master' into tsconfig 2015-01-19 14:50:18 -08:00
Anders Hejlsberg
af61e6424a Watch for changes to tsconfig.json in -watch mode 2015-01-18 17:40:05 -08:00
Anders Hejlsberg
960d92f9b6 Default to all files only when none are specified in tsconfig.json 2015-01-15 17:12:45 -08:00
Daniel Rosenwasser
5bcb52f9b0 Merge pull request #1676 from Microsoft/disallowOptionalBindingParameters
Disallow optional destructured parameters in implementation signatures.
2015-01-15 16:55:14 -08:00
Daniel Rosenwasser
2a11222050 'may not' -> 'cannot' 2015-01-15 16:29:50 -08:00
Anders Hejlsberg
f9f95ba614 Support for tsconfig.json files in command-line compiler 2015-01-15 13:22:23 -08:00
Daniel Rosenwasser
75a1a8a493 Disallow optional destructured parameters in implementation signatures. 2015-01-14 17:25:46 -08:00
Daniel Rosenwasser
e19ebc6d3e Disallow binding patterns in parameter properties. 2015-01-14 16:15:00 -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