Commit Graph
666 Commits
Author SHA1 Message Date
Anders Hejlsberg 69bd05946a CommonJS emit for ES6 import declarations 2015-02-08 08:03:15 -08:00
Anders Hejlsberg 7e187ef75f Correctly set position of import declaration nodes 2015-02-06 14:44:24 -08:00
Anders Hejlsberg 7bd14a7895 Merge branch 'master' into es6importcheck
Conflicts:
	src/compiler/checker.ts
2015-02-06 14:36:36 -08:00
Anders Hejlsberg 36c9cf09e6 Adding new import nodes to forEachChild 2015-02-06 06:13:54 -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
Sheetal Nandi a9575a509e New Import declaration syntax makes the source file external module 2015-01-30 13:36:17 -08:00
Sheetal Nandi 62ed6183d9 Change the name of defaultBinding to name and make ImportClause as Declaration
This helps binder to use it directly to bind the default binding
2015-01-30 13:02:11 -08:00
Sheetal Nandi d85581ba0e Do not create Name of the importSpecifier if it isnt identifier, to avoid creating missing symbols
Missing symbols are defined when the declaration doesnt have name,
so if we created node for missing identifier it would end up binding symbol with name (Missing)
2015-01-30 12:55:38 -08:00
Sheetal Nandi c521fe434e Rename ImportStatement to ImportDeclaration 2015-01-29 16:27:33 -08:00
Sheetal Nandi fc912729f5 Some refactoring of how import specifiers are parsed as per code review feedback 2015-01-29 14:14:05 -08:00
Sheetal Nandi b0f2265fe3 Code review feedback 2015-01-29 13:38:26 -08:00
Sheetal Nandi d296a10096 Rename bindings to namedBindings in ImportClause 2015-01-29 13:31:45 -08:00
Sheetal Nandi 69fef6e544 Parsing for default binding import syntax 2015-01-27 16:43:46 -08:00
Sheetal Nandi 5eb009461e Parsing for NamedImports
NamedImports :
{ }
{ ImportsList }
{ ImportsList , }

ImportsList :
ImportSpecifier
ImportsList , ImportSpecifier

ImportSpecifier :
ImportedBinding
IdentifierName as ImportedBinding

Conflicts:
	src/compiler/parser.ts
2015-01-27 16:28:28 -08:00
Sheetal Nandi fdd7032c61 Parsing for import * as ImportedBinding 2015-01-27 16:16:31 -08:00
Sheetal Nandi 4f1b908212 Parse import ModuleSpecifier; 2015-01-27 16:16:27 -08:00
Sheetal Nandi e0581899fa Rename existing import declaration to ImportEqualsDeclaration 2015-01-27 14:42:20 -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