663 Commits

Author SHA1 Message Date
Cyrus Najmabadi
2eb1a213c7 Prevent index out of bounds exception. 2015-02-09 14:55:54 -08:00
Cyrus Najmabadi
17dd6c2de0 Be more conservative about reusing parameters. 2015-02-09 14:40:03 -08:00
Cyrus Najmabadi
a79e8e928b Remove code duplication in isModuleElement. 2015-02-09 14:34:47 -08:00
Cyrus Najmabadi
e417f3016b Add additional asserts, and make code more unified. 2015-02-09 14:23:55 -08:00
Cyrus Najmabadi
d37fdfe213 Add additional asserts. 2015-02-09 14:12:32 -08:00
Cyrus Najmabadi
318aa8ce7a Don't use dynamic type checks while incrementally parsing. 2015-02-09 14:07:09 -08:00
Cyrus Najmabadi
d0aa7891de Add additional incremental assert. 2015-02-08 18:02:13 -08:00
Cyrus Najmabadi
9d6b6b422a Rename a few members and clean up comments. 2015-02-08 17:48:56 -08:00
Cyrus Najmabadi
ad7c77ea08 Check the text change range before and after we expand it. 2015-02-08 17:35:54 -08:00
Cyrus Najmabadi
1a17fd1daf Move assertions into the parsing layer. 2015-02-08 17:30:27 -08:00
Cyrus Najmabadi
a82c57c4b9 Make sure positions of child elements are consistent. 2015-02-08 16:40:04 -08:00
Cyrus Najmabadi
f1cb97b692 Add additional aggressive checks during incremental parsing. 2015-02-08 16:10:16 -08:00
Cyrus Najmabadi
449f4a4f37 Have better error recovery for whne a user uses semicolons instead of commas to delimit an object literal. 2015-02-06 17:30:29 -08:00
Cyrus Najmabadi
ea4e3de91c Remove unnecessary diagnostics split on SourceFile. 2015-02-05 13:38:11 -08:00
Cyrus Najmabadi
f20fbb9726 Remove what looks like copy/paste errors in the parser. 2015-02-05 13:14:41 -08:00
Cyrus Najmabadi
337a99f62a Change the API for getting diagnostics so that all calls go through a Program instance. 2015-02-05 01:47:29 -08:00
Cyrus Najmabadi
28c1a23e7c Track performance statistics in the ts module.
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi
c7160ddb31 Rename semanticDiagnostics to bindDiagnotics. 2015-02-04 13:31:36 -08:00
Cyrus Najmabadi
35a6d0e68a Introduce an object to store and manage diagnostics for different compiler components. 2015-02-04 13:04:42 -08:00
Cyrus Najmabadi
95702a89a7 Fix spelling of 'Filename' to be 'FileName'. 2015-02-03 16:08:46 -08:00
Vladimir Matveev
edc65e1753 addressed CR feedback: renamed update to updateSourceFile 2015-01-16 18:19:47 -08:00
Vladimir Matveev
cf8c21893a moved update function out of SourceFile 2015-01-16 16:22:11 -08:00
Vladimir Matveev
c40977c5fb move getSyntacticDiagnostics out of SourceFile 2015-01-16 12:32:37 -08:00
Vladimir Matveev
45ac06a0f2 move line map related function out of SourceFile 2015-01-16 12:02:12 -08:00
Daniel Rosenwasser
372b0a4e15 Updated parser lookahead for modifiers to anticipate object literals. 2015-01-13 16:24:23 -08:00
Anders Hejlsberg
a8cf58939b Adding comment 2015-01-09 06:52:24 -08:00
Anders Hejlsberg
bdfb655d66 Renaming helpers and cleaning up logic 2015-01-08 18:46:48 -08:00
Anders Hejlsberg
78bb71f837 Optimizing forEachChild function to not create closures 2015-01-08 16:43:37 -08:00
Jason Freeman
7459c87265 Merge branch 'release-1.4'
Conflicts:
	bin/lib.core.es6.d.ts
	bin/lib.es6.d.ts
	bin/tsc.js
	bin/typescript.d.ts
	bin/typescriptServices.d.ts
	bin/typescriptServices.js
	bin/typescriptServices_internal.d.ts
	bin/typescript_internal.d.ts
2015-01-05 15:08:17 -08:00
Cyrus Najmabadi
b37b98138d Merge branch 'master' into layering
Conflicts:
	src/compiler/checker.ts
	src/compiler/utilities.ts
2014-12-17 15:35:30 -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
f459951431 Merge branch 'diagnostics' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
2014-12-16 23:48:00 -08:00
Cyrus Najmabadi
5df0ca529e Merge branch 'master' into layering
Conflicts:
	src/compiler/checker.ts
	src/compiler/parser.ts
2014-12-16 23:15:57 -08:00
Cyrus Najmabadi
2748a5b163 Remove 'grammarDiagnostics' from SourceFile. 2014-12-16 23:00:14 -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
Cyrus Najmabadi
99a189936f Remove last vestiges of the grammar checker from the parser now that it has been entirely moved to the TypeChecker. 2014-12-16 19:59:16 -08:00
Yui T
fdfd8d4863 Cleaning up migrating grammar checking 2014-12-16 19:11:07 -08:00
Cyrus Najmabadi
9df59c39ee Change TextChangeRange to be a record type as well. 2014-12-16 18:40:15 -08:00
Cyrus Najmabadi
7f3a73b7c8 Change 'TextSpan' to be a simple record type with free floating functions. 2014-12-16 18:31:06 -08:00
Anders Hejlsberg
fab94d84e5 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/parser.ts
2014-12-16 18:09:21 -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
Cyrus Najmabadi
dfb1ac0f00 Use constant in another place. 2014-12-16 17:14:45 -08:00
Mohamed Hegazy
cd7fc0c3fe Merge pull request #1495 from Microsoft/crashWhileReportingError
Do not use the file name in errors unless it exists
2014-12-16 16:56:01 -08:00
Cyrus Najmabadi
535f9d8972 Rename method to be clearer, and add comments to explain the semantics. 2014-12-16 16:36:49 -08:00
Cyrus Najmabadi
f3ce5d763c CR feedback. 2014-12-16 16:27:14 -08:00
Cyrus Najmabadi
97a6abcc07 CR feedback. 2014-12-16 16:12:14 -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
406576f1fc Move grammar checking: propertyDeclaration, propertySignature; there are still errors from incomplete grammar migration 2014-12-16 13:36:00 -08:00