Skip to content

Instantly share code, notes, and snippets.

@despairblue
Last active May 4, 2017 15:55
Show Gist options
  • Save despairblue/79e090660fbb4093b35ab3b24c617dfb to your computer and use it in GitHub Desktop.
Save despairblue/79e090660fbb4093b35ab3b24c617dfb to your computer and use it in GitHub Desktop.
prettier typescript test suite
This file has been truncated, but you can view the full file.
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/amd/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir/node/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/amd/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/node/declarations/a.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/node/declarations/subfolder/b.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir2/node/declarations/subfolder/c.d.ts
../TypeScript/tests//baselines/reference/project/declarationDir3/amd/out.d.ts
../TypeScript/tests//baselines/reference/project/declarationsCascadingImports/amd/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsCascadingImports/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsCascadingImports/node/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsCascadingImports/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsExportNamespace/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsExportNamespace/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsGlobalImport/amd/glo_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsGlobalImport/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsGlobalImport/node/glo_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsGlobalImport/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedInPrivate/amd/private_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedInPrivate/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedInPrivate/node/private_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedInPrivate/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedUseInFunction/amd/fncOnly_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedUseInFunction/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedUseInFunction/node/fncOnly_m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsImportedUseInFunction/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesImport/amd/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesImport/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesImport/node/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesImport/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/m5.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/node/m5.d.ts
../TypeScript/tests//baselines/reference/project/declarationsMultipleTimesMultipleImport/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsSimpleImport/amd/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsSimpleImport/amd/useModule.d.ts
../TypeScript/tests//baselines/reference/project/declarationsSimpleImport/node/m4.d.ts
../TypeScript/tests//baselines/reference/project/declarationsSimpleImport/node/useModule.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeNodeModulesAndOutDir/amd/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeNodeModulesAndOutDir/node/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/amd/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeNodeModulesAndRelativePathOutDir/node/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeOnlyNodeModules/amd/a.d.ts
../TypeScript/tests//baselines/reference/project/defaultExcludeOnlyNodeModules/node/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesNotSpecified/node/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesNotSpecifiedWithAllowJs/node/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesSpecified/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesSpecified/node/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationDifferentNamesSpecifiedWithAllowJs/node/test.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/amd/SameNameFilesNotSpecified/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesNotSpecified/node/SameNameFilesNotSpecified/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/amd/SameNameFilesNotSpecifiedWithAllowJs/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesNotSpecifiedWithAllowJs/node/SameNameFilesNotSpecifiedWithAllowJs/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesSpecified/amd/SameNameTsSpecified/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesSpecified/node/SameNameTsSpecified/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/amd/SameNameTsSpecifiedWithAllowJs/a.d.ts
../TypeScript/tests//baselines/reference/project/jsFileCompilationSameNameFilesSpecifiedWithAllowJs/node/SameNameTsSpecifiedWithAllowJs/a.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/mapRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlsourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/maprootUrlSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/noProjectOptionAndInputFiles/amd/a.d.ts
../TypeScript/tests//baselines/reference/project/noProjectOptionAndInputFiles/node/a.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/outMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/amd/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/node/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/amd/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/node/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/outSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/projectOptionTest/amd/Test/a.d.ts
../TypeScript/tests//baselines/reference/project/projectOptionTest/node/Test/a.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePaths/amd/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePaths/amd/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePaths/node/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePaths/node/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/bar/bar.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/amd/src/ts/foo/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/bar/bar.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsFromRootDirectory/node/src/ts/foo/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsNoResolve/amd/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsNoResolve/node/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/amd/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/diskFile1.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionRelativePathsRelativeToRootDirectory/node/foo.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionSameFileTwice/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionSameFileTwice/node/test.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/referenceResolutionSameFileTwiceNoResolve/node/test.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/fileB.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectory/amd/outdir/simple/FolderB/FolderC/fileC.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/fileB.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectory/node/outdir/simple/FolderB/FolderC/fileC.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/fileB.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectoryErrors/amd/outdir/simple/FolderC/fileC.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectoryErrors/node/outdir/simple/fileB.d.ts
../TypeScript/tests//baselines/reference/project/rootDirectoryErrors/node/outdir/simple/FolderC/fileC.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcemapSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootAbsolutePathSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourceRootRelativePathSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/amd/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMixedSubfolderSpecifyOutputFileAndOutputDirectory/node/bin/outAndOutDirFile.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_module_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlModuleSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/diskFile2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/amd/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputDirectory/node/outdir/simple/outputdir_multifolder_ref/m2.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlMultifolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSimpleSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSingleFileSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderNoOutdir/amd/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderNoOutdir/node/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/amd/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/ref/m1.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputDirectory/node/outdir/simple/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/amd/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/sourcerootUrlSubfolderSpecifyOutputFile/node/bin/test.d.ts
../TypeScript/tests//baselines/reference/project/specifyExcludeUsingRelativepath/amd/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/specifyExcludeUsingRelativepath/node/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/specifyExcludeWithOutUsingRelativePath/amd/OutDir/a.d.ts
../TypeScript/tests//baselines/reference/project/specifyExcludeWithOutUsingRelativePath/node/OutDir/a.d.ts
../TypeScript/tests//cases/compiler/2dArrays.ts
../TypeScript/tests//cases/compiler/abstractClassInLocalScope.ts
../TypeScript/tests//cases/compiler/abstractClassInLocalScopeIsAbstract.ts
../TypeScript/tests//cases/compiler/abstractIdentifierNameStrict.ts
../TypeScript/tests//cases/compiler/abstractInterfaceIdentifierName.ts
../TypeScript/tests//cases/compiler/abstractProperty.ts
../TypeScript/tests//cases/compiler/abstractPropertyNegative.ts
../TypeScript/tests//cases/compiler/abstractPropertyNegative.ts: Error: Comment "error, not same type" was not printed. Please report this error!
at astComments.forEach.comment (/Users/despairblue/git/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/Users/despairblue/git/prettier/index.js:67:15)
at format (/Users/despairblue/git/prettier/index.js:85:3)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
at format (/Users/despairblue/git/prettier/bin/prettier.js:214:25)
at err (/Users/despairblue/git/prettier/bin/prettier.js:328:16)
at patterns.forEach.pattern (/Users/despairblue/git/prettier/bin/prettier.js:372:7)
at Array.forEach (native)
../TypeScript/tests//cases/compiler/acceptableAlias1.ts
../TypeScript/tests//cases/compiler/accessInstanceMemberFromStaticMethod01.ts
../TypeScript/tests//cases/compiler/accessorParameterAccessibilityModifier.ts
../TypeScript/tests//cases/compiler/accessors_spec_section-4.5_error-cases.ts
../TypeScript/tests//cases/compiler/accessors_spec_section-4.5_inference.ts
../TypeScript/tests//cases/compiler/accessorsEmit.ts
../TypeScript/tests//cases/compiler/accessorsInAmbientContext.ts
../TypeScript/tests//cases/compiler/accessorsNotAllowedInES3.ts
../TypeScript/tests//cases/compiler/accessorWithInitializer.ts
../TypeScript/tests//cases/compiler/accessorWithoutBody1.ts
../TypeScript/tests//cases/compiler/accessorWithoutBody2.ts
../TypeScript/tests//cases/compiler/accessorWithRestParam.ts
../TypeScript/tests//cases/compiler/accessOverriddenBaseClassMember1.ts
../TypeScript/tests//cases/compiler/accessStaticMemberFromInstanceMethod01.ts
../TypeScript/tests//cases/compiler/addMoreCallSignaturesToBaseSignature.ts
../TypeScript/tests//cases/compiler/addMoreCallSignaturesToBaseSignature2.ts
../TypeScript/tests//cases/compiler/addMoreOverloadsToBaseSignature.ts
../TypeScript/tests//cases/compiler/aliasAssignments.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,7 @@
export class someClass {
public someData: string;
-}
+} // @Filename: aliasAssignments_1.ts
-
-import // @Filename: aliasAssignments_1.ts
-moduleA = require("./aliasAssignments_moduleA");
+import moduleA = require("./aliasAssignments_moduleA");
var x = moduleA;
x = 1; // Should be error
../TypeScript/tests//cases/compiler/aliasBug.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -107,12 +107,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "foo"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "bar"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,14 +1,12 @@
// @module: commonjs
-module foo {
- export class Provide {
- }
-
- export module bar { export module baz {export class boo {}}}
+module foo {
+ export class Provide {}export module bar {
+ export module baz { export class boo {} }
+ }
}
import provide = foo;
-import booz = foo.bar.baz;
-
+import booz = undefined.baz;
var p = new provide.Provide();
@@ -16,5 +14,5 @@
var p1: provide.Provide; // error here, but should be okay
var p2: foo.Provide;
- var p3:booz.bar;
+ var p3: booz.bar;
var p22 = new provide.Provide();
}
../TypeScript/tests//cases/compiler/aliasErrors.ts
../TypeScript/tests//cases/compiler/aliasErrors.ts: { index: 249,
lineNumber: 13,
column: 11,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/aliasesInSystemModule1.ts
../TypeScript/tests//cases/compiler/aliasesInSystemModule2.ts
../TypeScript/tests//cases/compiler/aliasInaccessibleModule.ts
../TypeScript/tests//cases/compiler/aliasInaccessibleModule2.ts
../TypeScript/tests//cases/compiler/aliasOnMergedModuleInterface.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,9 +7,8 @@
bar(name: string): B.A
}export default B;
-}
+} // @Filename: aliasOnMergedModuleInterface_1.ts
-import // @Filename: aliasOnMergedModuleInterface_1.ts
-///<reference path='aliasOnMergedModuleInterface_0.ts' />
+import ///<reference path='aliasOnMergedModuleInterface_0.ts' />
foo = require("foo");
var z: foo;
../TypeScript/tests//cases/compiler/aliasUsageInAccessorsOfClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,16 +4,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsage1_moduleA.ts
-
-import // @Filename: aliasUsage1_moduleA.ts
-Backbone = require("./aliasUsage1_backbone");
+import Backbone = require("./aliasUsage1_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsage1_main.ts
-
-import // @Filename: aliasUsage1_main.ts
-Backbone = require("./aliasUsage1_backbone");
+import Backbone = require("./aliasUsage1_backbone");
import moduleA = require("./aliasUsage1_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInArray.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInArray_moduleA.ts
-
-import // @Filename: aliasUsageInArray_moduleA.ts
-Backbone = require("./aliasUsageInArray_backbone");
+import Backbone = require("./aliasUsageInArray_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInArray_main.ts
-
-import // @Filename: aliasUsageInArray_main.ts
-Backbone = require("./aliasUsageInArray_backbone");
+import Backbone = require("./aliasUsageInArray_backbone");
import moduleA = require("./aliasUsageInArray_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInFunctionExpression.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInFunctionExpression_moduleA.ts
-
-import // @Filename: aliasUsageInFunctionExpression_moduleA.ts
-Backbone = require("./aliasUsageInFunctionExpression_backbone");
+import Backbone = require("./aliasUsageInFunctionExpression_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInFunctionExpression_main.ts
-
-import // @Filename: aliasUsageInFunctionExpression_main.ts
-Backbone = require("./aliasUsageInFunctionExpression_backbone");
+import Backbone = require("./aliasUsageInFunctionExpression_backbone");
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInGenericFunction.ts
../TypeScript/tests//cases/compiler/aliasUsageInGenericFunction.ts: { index: 758,
lineNumber: 23,
column: 19,
message: 'JSX element \'IHasVisualizationModel\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/aliasUsageInIndexerOfClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInIndexerOfClass_moduleA.ts
-
-import // @Filename: aliasUsageInIndexerOfClass_moduleA.ts
-Backbone = require("./aliasUsageInIndexerOfClass_backbone");
+import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInIndexerOfClass_main.ts
-
-import // @Filename: aliasUsageInIndexerOfClass_main.ts
-Backbone = require("./aliasUsageInIndexerOfClass_backbone");
+import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInObjectLiteral.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInObjectLiteral_moduleA.ts
-
-import // @Filename: aliasUsageInObjectLiteral_moduleA.ts
-Backbone = require("./aliasUsageInObjectLiteral_backbone");
+import Backbone = require("./aliasUsageInObjectLiteral_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInObjectLiteral_main.ts
-
-import // @Filename: aliasUsageInObjectLiteral_main.ts
-Backbone = require("./aliasUsageInObjectLiteral_backbone");
+import Backbone = require("./aliasUsageInObjectLiteral_backbone");
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInOrExpression.ts
../TypeScript/tests//cases/compiler/aliasUsageInOrExpression.ts: { index: 801,
lineNumber: 23,
column: 39,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/aliasUsageInTypeArgumentOfExtendsClause.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts
-
-import // @Filename: aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts
-Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
+import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInTypeArgumentOfExtendsClause_main.ts
-
-import // @Filename: aliasUsageInTypeArgumentOfExtendsClause_main.ts
-Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
+import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsageInVarAssignment.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,16 +3,12 @@
export class Model {
public someData: string;
-}
+} // @Filename: aliasUsageInVarAssignment_moduleA.ts
-
-import // @Filename: aliasUsageInVarAssignment_moduleA.ts
-Backbone = require("./aliasUsageInVarAssignment_backbone");
+import Backbone = require("./aliasUsageInVarAssignment_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: aliasUsageInVarAssignment_main.ts
-
-import // @Filename: aliasUsageInVarAssignment_main.ts
-Backbone = require("./aliasUsageInVarAssignment_backbone");
+import Backbone = require("./aliasUsageInVarAssignment_backbone");
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
interface IHasVisualizationModel {
../TypeScript/tests//cases/compiler/aliasUsedAsNameValue.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,8 @@
export function b(a: any): any {
return null;
-}
+} // @Filename: aliasUsedAsNameValue_2.ts
-import // @Filename: aliasUsedAsNameValue_2.ts
-///<reference path='aliasUsedAsNameValue_0.ts' />
+import ///<reference path='aliasUsedAsNameValue_0.ts' />
///<reference path='aliasUsedAsNameValue_1.ts' />
mod = require("./aliasUsedAsNameValue_0");
../TypeScript/tests//cases/compiler/aliasWithInterfaceExportAssignmentUsedInVarInitializer.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,8 +4,7 @@
q3: number
}
-export default c;
+export default c; // @Filename: aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts
-import // @Filename: aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts
-moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
+import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
var d = b.q3;
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports1.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports10.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,7 @@
export function foo()
-export function bar()
+export function bar() // @Filename: a.ts
-
-import // @Filename: a.ts
-Foo = require("./b");
+import Foo = require("./b");
Foo.default.bar();
Foo.default.default.foo();
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports2.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports3.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports4.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports5.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports6.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports7.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports8.ts
../TypeScript/tests//cases/compiler/allowSyntheticDefaultImports9.ts
../TypeScript/tests//cases/compiler/alwaysStrict.ts
../TypeScript/tests//cases/compiler/alwaysStrictAlreadyUseStrict.ts
../TypeScript/tests//cases/compiler/alwaysStrictES6.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule2.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule3.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule4.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule5.ts
../TypeScript/tests//cases/compiler/alwaysStrictModule6.ts
../TypeScript/tests//cases/compiler/alwaysStrictNoImplicitUseStrict.ts
../TypeScript/tests//cases/compiler/ambientClassDeclarationWithExtends.ts
../TypeScript/tests//cases/compiler/ambientClassDeclaredBeforeBase.ts
../TypeScript/tests//cases/compiler/ambientClassMergesOverloadsWithInterface.ts
../TypeScript/tests//cases/compiler/ambientClassOverloadForFunction.ts
../TypeScript/tests//cases/compiler/ambientConstLiterals.ts
../TypeScript/tests//cases/compiler/ambientEnum1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,8 +19,4 @@
"type": "Identifier",
"name": "y"
- },
- "initializer": {
- "type": "Literal",
- "value": 4.23
}
}
@@ -44,16 +40,4 @@
"type": "Identifier",
"name": "x"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Literal",
- "value": "foo"
- },
- "property": {
- "type": "Identifier",
- "name": "length"
- },
- "computed": false
}
}
Index:
===================================================================
---
+++
@@ -1,8 +1,4 @@
- declare enum E1 {
- y = 4.23
- }
-
- // Ambient enum with computer member
- declare enum E2 {
- x = 'foo'.length
- }
\ No newline at end of file
+declare enum E1 { y }
+
+// Ambient enum with computer member
+declare enum E2 { x }
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,8 +19,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "Literal",
- "value": 3
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-declare enum E {
- e = 3
-}
\ No newline at end of file
+declare enum E { e }
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,13 +19,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "UnaryExpression",
- "operator": "-",
- "prefix": true,
- "argument": {
- "type": "Literal",
- "value": 3
- }
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-declare enum E {
- e = -3 // Negative
-}
\ No newline at end of file
+declare enum E { e } // Negative
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,8 +19,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "Literal",
- "value": 3.3
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-declare enum E {
- e = 3.3 // Decimal
-}
\ No newline at end of file
+declare enum E { e } // Decimal
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer4.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,8 +19,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-declare enum E {
- e = 0xA
-}
\ No newline at end of file
+declare enum E { e }
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer5.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,13 +19,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "UnaryExpression",
- "operator": "-",
- "prefix": true,
- "argument": {
- "type": "Literal",
- "value": 10
- }
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-declare enum E {
- e = -0xA
-}
\ No newline at end of file
+declare enum E { e }
../TypeScript/tests//cases/compiler/ambientEnumElementInitializer6.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -28,8 +28,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "Literal",
- "value": 3
}
}
Index:
===================================================================
---
+++
@@ -1,5 +1,3 @@
declare module M {
- enum E {
- e = 3
- }
-}
\ No newline at end of file
+ enum E { e }
+}
../TypeScript/tests//cases/compiler/ambientErrors1.ts
../TypeScript/tests//cases/compiler/ambientExternalModuleInAnotherExternalModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,8 +6,6 @@
declare module "ext" {
export class C {}
-}
+} // Cannot resolve this ext module reference
-
-import // Cannot resolve this ext module reference
-ext = require("ext");
+import ext = require("ext");
var x = ext;
../TypeScript/tests//cases/compiler/ambientExternalModuleReopen.ts
../TypeScript/tests//cases/compiler/ambientExternalModuleWithInternalImportDeclaration.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,9 +7,8 @@
foo(): void;
}import X = C;export default X;
-}
+} // @Filename: ambientExternalModuleWithInternalImportDeclaration_1.ts
-import // @Filename: ambientExternalModuleWithInternalImportDeclaration_1.ts
-///<reference path='ambientExternalModuleWithInternalImportDeclaration_0.ts'/>
+import ///<reference path='ambientExternalModuleWithInternalImportDeclaration_0.ts'/>
A = require("M");
var c = new A();
../TypeScript/tests//cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,9 +7,8 @@
foo(): void;
}export default C;
-}
+} // @Filename: ambientExternalModuleWithoutInternalImportDeclaration_1.ts
-import // @Filename: ambientExternalModuleWithoutInternalImportDeclaration_1.ts
-///<reference path='ambientExternalModuleWithoutInternalImportDeclaration_0.ts'/>
+import ///<reference path='ambientExternalModuleWithoutInternalImportDeclaration_0.ts'/>
A = require("M");
var c = new A();
../TypeScript/tests//cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts
../TypeScript/tests//cases/compiler/ambientExternalModuleWithRelativeModuleName.ts
../TypeScript/tests//cases/compiler/ambientFundule.ts
../TypeScript/tests//cases/compiler/ambientGetters.ts
../TypeScript/tests//cases/compiler/ambientModuleExports.ts
../TypeScript/tests//cases/compiler/ambientModuleExports.ts: { index: 43,
lineNumber: 2,
column: 21,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/ambientModules.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,33 +14,38 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Bar"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "foo"
- },
- "init": null
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Bar"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "foo"
+ },
+ "init": null
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -1,2 +1,4 @@
-declare module Foo.Bar { export var foo; };
-Foo.Bar.foo = 5;
\ No newline at end of file
+declare module Foo {
+ module Bar { export var foo; }
+}
+Foo.Bar.foo = 5;
../TypeScript/tests//cases/compiler/ambientModuleWithClassDeclarationWithExtends.ts
../TypeScript/tests//cases/compiler/ambientNameRestrictions.ts
../TypeScript/tests//cases/compiler/ambientRequireFunction.ts
../TypeScript/tests//cases/compiler/ambientStatement1.ts
../TypeScript/tests//cases/compiler/ambientWithStatements.ts
../TypeScript/tests//cases/compiler/ambiguousCallsWhereReturnTypesAgree.ts
../TypeScript/tests//cases/compiler/ambiguousGenericAssertion1.ts
../TypeScript/tests//cases/compiler/ambiguousGenericAssertion1.ts: { index: 77,
lineNumber: 3,
column: 11,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/ambiguousOverload.ts
../TypeScript/tests//cases/compiler/ambiguousOverloadResolution.ts
../TypeScript/tests//cases/compiler/amdDependencyComment1.ts
../TypeScript/tests//cases/compiler/amdDependencyComment2.ts
../TypeScript/tests//cases/compiler/amdDependencyCommentName1.ts
../TypeScript/tests//cases/compiler/amdDependencyCommentName2.ts
../TypeScript/tests//cases/compiler/amdDependencyCommentName3.ts
../TypeScript/tests//cases/compiler/amdDependencyCommentName4.ts
../TypeScript/tests//cases/compiler/amdModuleName1.ts
../TypeScript/tests//cases/compiler/amdModuleName2.ts
../TypeScript/tests//cases/compiler/amdModuleName2.ts: { index: 55,
lineNumber: 3,
column: 0,
message: 'An AMD module cannot have multiple name assignments.' }
../TypeScript/tests//cases/compiler/anonterface.ts
../TypeScript/tests//cases/compiler/anonymousClassExpression1.ts
../TypeScript/tests//cases/compiler/anonymousClassExpression2.ts
../TypeScript/tests//cases/compiler/anonymousModules.ts
../TypeScript/tests//cases/compiler/anonymousModules.ts: { index: 7, lineNumber: 1, column: 7, message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/anyAsReturnTypeForNewOnCall.ts
../TypeScript/tests//cases/compiler/anyDeclare.ts
../TypeScript/tests//cases/compiler/anyIdenticalToItself.ts
../TypeScript/tests//cases/compiler/anyInferenceAnonymousFunctions.ts
../TypeScript/tests//cases/compiler/anyIsAssignableToObject.ts
../TypeScript/tests//cases/compiler/anyIsAssignableToVoid.ts
../TypeScript/tests//cases/compiler/anyPlusAny1.ts
../TypeScript/tests//cases/compiler/APISample_compile.ts
../TypeScript/tests//cases/compiler/APISample_linter.ts
../TypeScript/tests//cases/compiler/APISample_linter.ts: { index: 1094,
lineNumber: 28,
column: 101,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/APISample_parseConfig.ts
../TypeScript/tests//cases/compiler/APISample_transform.ts
../TypeScript/tests//cases/compiler/APISample_watcher.ts
../TypeScript/tests//cases/compiler/argsInScope.ts
../TypeScript/tests//cases/compiler/arguments.ts
../TypeScript/tests//cases/compiler/argumentsAsPropertyName.ts
../TypeScript/tests//cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator01_ES5.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator01_ES5.ts: { index: 219,
lineNumber: 8,
column: 11,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/argumentsObjectIterator01_ES6.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator01_ES6.ts: { index: 219,
lineNumber: 8,
column: 11,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/argumentsObjectIterator02_ES5.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator02_ES5.ts: { index: 262,
lineNumber: 10,
column: 11,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/argumentsObjectIterator02_ES6.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator02_ES6.ts: { index: 262,
lineNumber: 10,
column: 11,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/argumentsObjectIterator03_ES5.ts
../TypeScript/tests//cases/compiler/argumentsObjectIterator03_ES6.ts
../TypeScript/tests//cases/compiler/argumentsUsedInObjectLiteralProperty.ts
../TypeScript/tests//cases/compiler/arithAssignTyping.ts
../TypeScript/tests//cases/compiler/arithmeticOnInvalidTypes.ts
../TypeScript/tests//cases/compiler/arithmeticOnInvalidTypes2.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest1.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest2.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest3.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest4.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest5.ts
../TypeScript/tests//cases/compiler/arrayAssignmentTest6.ts
../TypeScript/tests//cases/compiler/arrayAugment.ts
../TypeScript/tests//cases/compiler/arrayBestCommonTypes.ts
../TypeScript/tests//cases/compiler/arrayBestCommonTypes.ts: { index: 1252,
lineNumber: 32,
column: 23,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/arrayBindingPatternOmittedExpressions.ts
../TypeScript/tests//cases/compiler/arrayBufferIsViewNarrowsType.ts
../TypeScript/tests//cases/compiler/arrayCast.ts
../TypeScript/tests//cases/compiler/arrayCast.ts: { index: 170,
lineNumber: 3,
column: 0,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/arrayconcat.ts
../TypeScript/tests//cases/compiler/arrayConcat2.ts
../TypeScript/tests//cases/compiler/arrayConcatMap.ts
../TypeScript/tests//cases/compiler/arrayConstructors1.ts
../TypeScript/tests//cases/compiler/arrayFilter.ts
../TypeScript/tests//cases/compiler/arrayLiteral1.ts
../TypeScript/tests//cases/compiler/arrayLiteral2.ts
../TypeScript/tests//cases/compiler/arrayLiteralAndArrayConstructorEquivalence1.ts
../TypeScript/tests//cases/compiler/arrayLiteralComments.ts
../TypeScript/tests//cases/compiler/arrayLiteralContextualType.ts
../TypeScript/tests//cases/compiler/arrayLiteralInNonVarArgParameter.ts
../TypeScript/tests//cases/compiler/arrayLiteralTypeInference.ts
../TypeScript/tests//cases/compiler/arrayOfExportedClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,8 @@
}
-export default Car;
+export default Car; // @Filename: arrayOfExportedClass_1.ts
-import // @Filename: arrayOfExportedClass_1.ts
-///<reference path='arrayOfExportedClass_0.ts'/>
+import ///<reference path='arrayOfExportedClass_0.ts'/>
Car = require("./arrayOfExportedClass_0");
class Road {
../TypeScript/tests//cases/compiler/arrayOfSubtypeIsAssignableToReadonlyArray.ts
../TypeScript/tests//cases/compiler/arrayReferenceWithoutTypeArgs.ts
../TypeScript/tests//cases/compiler/arraySigChecking.ts
../TypeScript/tests//cases/compiler/arraySigChecking.ts: { index: 173,
lineNumber: 6,
column: 29,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/arraySlice.ts
../TypeScript/tests//cases/compiler/arrayTypeInSignatureOfInterfaceAndClass.ts
../TypeScript/tests//cases/compiler/arrowFunctionErrorSpan.ts
../TypeScript/tests//cases/compiler/ArrowFunctionExpression1.ts
../TypeScript/tests//cases/compiler/arrowFunctionInConstructorArgument1.ts
../TypeScript/tests//cases/compiler/arrowFunctionInExpressionStatement1.ts
../TypeScript/tests//cases/compiler/arrowFunctionInExpressionStatement2.ts
../TypeScript/tests//cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts
../TypeScript/tests//cases/compiler/arrowFunctionMissingCurlyWithSemicolon.ts: { index: 45,
lineNumber: 2,
column: 14,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/arrowFunctionsMissingTokens.ts
../TypeScript/tests//cases/compiler/arrowFunctionsMissingTokens.ts: { index: 50,
lineNumber: 3,
column: 15,
message: '\'=>\' expected.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody1.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody1.ts: { index: 14,
lineNumber: 1,
column: 14,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody2.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody2.ts: { index: 19,
lineNumber: 1,
column: 19,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody3.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody3.ts: { index: 31,
lineNumber: 2,
column: 14,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody4.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody4.ts: { index: 36,
lineNumber: 2,
column: 19,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody5.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody5.ts: { index: 27,
lineNumber: 1,
column: 27,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody6.ts
../TypeScript/tests//cases/compiler/arrowFunctionWithObjectLiteralBody6.ts: { index: 44,
lineNumber: 2,
column: 27,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/asiAbstract.ts
../TypeScript/tests//cases/compiler/asiAmbientFunctionDeclaration.ts
../TypeScript/tests//cases/compiler/asiArith.ts
../TypeScript/tests//cases/compiler/asiBreak.ts
../TypeScript/tests//cases/compiler/asiContinue.ts
../TypeScript/tests//cases/compiler/asiInES6Classes.ts
../TypeScript/tests//cases/compiler/asiPublicPrivateProtected.ts
../TypeScript/tests//cases/compiler/asiReturn.ts
../TypeScript/tests//cases/compiler/assertInWrapSomeTypeParameter.ts
../TypeScript/tests//cases/compiler/assertInWrapSomeTypeParameter.ts: { index: 52,
lineNumber: 2,
column: 25,
message: '\'>\' expected.' }
../TypeScript/tests//cases/compiler/assign1.ts
../TypeScript/tests//cases/compiler/assigningFromObjectToAnythingElse.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -103,18 +103,5 @@
"value": ""
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "Object"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -160,18 +147,5 @@
"value": 1
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "Number"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -3,6 +3,6 @@
y = x;
-var a: String = Object.create<Object>("");
-var c: String = Object.create<Number>(1);
+var a: String = Object.create("");
+var c: String = Object.create(1);
var w: Error = new Object();
../TypeScript/tests//cases/compiler/assignLambdaToNominalSubtypeOfFunction.ts
../TypeScript/tests//cases/compiler/assignmentCompat1.ts
../TypeScript/tests//cases/compiler/assignmentCompatability1.ts
../TypeScript/tests//cases/compiler/assignmentCompatability10.ts
../TypeScript/tests//cases/compiler/assignmentCompatability11.ts
../TypeScript/tests//cases/compiler/assignmentCompatability12.ts
../TypeScript/tests//cases/compiler/assignmentCompatability13.ts
../TypeScript/tests//cases/compiler/assignmentCompatability14.ts
../TypeScript/tests//cases/compiler/assignmentCompatability15.ts
../TypeScript/tests//cases/compiler/assignmentCompatability16.ts
../TypeScript/tests//cases/compiler/assignmentCompatability16.ts: { index: 257,
lineNumber: 6,
column: 31,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/assignmentCompatability17.ts
../TypeScript/tests//cases/compiler/assignmentCompatability17.ts: { index: 257,
lineNumber: 6,
column: 31,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/assignmentCompatability18.ts
../TypeScript/tests//cases/compiler/assignmentCompatability19.ts
../TypeScript/tests//cases/compiler/assignmentCompatability2.ts
../TypeScript/tests//cases/compiler/assignmentCompatability20.ts
../TypeScript/tests//cases/compiler/assignmentCompatability21.ts
../TypeScript/tests//cases/compiler/assignmentCompatability22.ts
../TypeScript/tests//cases/compiler/assignmentCompatability23.ts
../TypeScript/tests//cases/compiler/assignmentCompatability24.ts
../TypeScript/tests//cases/compiler/assignmentCompatability25.ts
../TypeScript/tests//cases/compiler/assignmentCompatability26.ts
../TypeScript/tests//cases/compiler/assignmentCompatability27.ts
../TypeScript/tests//cases/compiler/assignmentCompatability28.ts
../TypeScript/tests//cases/compiler/assignmentCompatability29.ts
../TypeScript/tests//cases/compiler/assignmentCompatability3.ts
../TypeScript/tests//cases/compiler/assignmentCompatability30.ts
../TypeScript/tests//cases/compiler/assignmentCompatability31.ts
../TypeScript/tests//cases/compiler/assignmentCompatability32.ts
../TypeScript/tests//cases/compiler/assignmentCompatability33.ts
../TypeScript/tests//cases/compiler/assignmentCompatability34.ts
../TypeScript/tests//cases/compiler/assignmentCompatability35.ts
../TypeScript/tests//cases/compiler/assignmentCompatability36.ts
../TypeScript/tests//cases/compiler/assignmentCompatability37.ts
../TypeScript/tests//cases/compiler/assignmentCompatability38.ts
../TypeScript/tests//cases/compiler/assignmentCompatability39.ts
../TypeScript/tests//cases/compiler/assignmentCompatability4.ts
../TypeScript/tests//cases/compiler/assignmentCompatability40.ts
../TypeScript/tests//cases/compiler/assignmentCompatability41.ts
../TypeScript/tests//cases/compiler/assignmentCompatability42.ts
../TypeScript/tests//cases/compiler/assignmentCompatability43.ts
../TypeScript/tests//cases/compiler/assignmentCompatability5.ts
../TypeScript/tests//cases/compiler/assignmentCompatability6.ts
../TypeScript/tests//cases/compiler/assignmentCompatability7.ts
../TypeScript/tests//cases/compiler/assignmentCompatability8.ts
../TypeScript/tests//cases/compiler/assignmentCompatability9.ts
../TypeScript/tests//cases/compiler/assignmentCompatability_checking-apply-member-off-of-function-interface.ts
../TypeScript/tests//cases/compiler/assignmentCompatability_checking-call-member-off-of-function-interface.ts
../TypeScript/tests//cases/compiler/assignmentCompatBug2.ts
../TypeScript/tests//cases/compiler/assignmentCompatBug3.ts
../TypeScript/tests//cases/compiler/assignmentCompatBug5.ts
../TypeScript/tests//cases/compiler/assignmentCompatForEnums.ts
../TypeScript/tests//cases/compiler/assignmentCompatFunctionsWithOptionalArgs.ts
../TypeScript/tests//cases/compiler/assignmentCompatibilityForConstrainedTypeParameters.ts
../TypeScript/tests//cases/compiler/assignmentCompatInterfaceWithStringIndexSignature.ts
../TypeScript/tests//cases/compiler/assignmentCompatOnNew.ts
../TypeScript/tests//cases/compiler/assignmentCompatWithOverloads.ts
../TypeScript/tests//cases/compiler/assignmentNestedInLiterals.ts
../TypeScript/tests//cases/compiler/assignmentNonObjectTypeConstraints.ts
../TypeScript/tests//cases/compiler/assignmentNonObjectTypeConstraints.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/assignmentRestElementWithErrorSourceType.ts
../TypeScript/tests//cases/compiler/assignmentStricterConstraints.ts
../TypeScript/tests//cases/compiler/assignmentToExpandingArrayType.ts
../TypeScript/tests//cases/compiler/assignmentToFunction.ts
../TypeScript/tests//cases/compiler/assignmentToObject.ts
../TypeScript/tests//cases/compiler/assignmentToObjectAndFunction.ts
../TypeScript/tests//cases/compiler/assignmentToParenthesizedExpression1.ts
../TypeScript/tests//cases/compiler/assignmentToReferenceTypes.ts
../TypeScript/tests//cases/compiler/assignToEnum.ts
../TypeScript/tests//cases/compiler/assignToExistingClass.ts
../TypeScript/tests//cases/compiler/assignToFn.ts
../TypeScript/tests//cases/compiler/assignToInvalidLHS.ts
../TypeScript/tests//cases/compiler/assignToModule.ts
../TypeScript/tests//cases/compiler/assignToObjectTypeWithPrototypeProperty.ts
../TypeScript/tests//cases/compiler/assignToPrototype1.ts
../TypeScript/tests//cases/compiler/asyncAwaitWithCapturedBlockScopeVar.ts
../TypeScript/tests//cases/compiler/asyncFunctionNoReturnType.ts
../TypeScript/tests//cases/compiler/asyncFunctionReturnType.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -348,31 +348,5 @@
"computed": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSIndexedAccessType",
- "objectType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "Obj"
- }
- },
- "indexType": {
- "type": "TSLastTypeNode",
- "literal": {
- "type": "Literal",
- "value": "stringProp"
- }
- }
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -633,31 +607,5 @@
"computed": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSIndexedAccessType",
- "objectType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "Obj"
- }
- },
- "indexType": {
- "type": "TSLastTypeNode",
- "literal": {
- "type": "Literal",
- "value": "anyProp"
- }
- }
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -956,31 +904,5 @@
"computed": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSIndexedAccessType",
- "objectType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TObj"
- }
- },
- "indexType": {
- "type": "TSLastTypeNode",
- "literal": {
- "type": "Literal",
- "value": "stringProp"
- }
- }
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -1298,31 +1220,5 @@
"computed": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSIndexedAccessType",
- "objectType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TObj"
- }
- },
- "indexType": {
- "type": "TSLastTypeNode",
- "literal": {
- "type": "Literal",
- "value": "anyProp"
- }
- }
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -1724,31 +1620,5 @@
"computed": true
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSIndexedAccessType",
- "objectType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TObj"
- }
- },
- "indexType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "K"
- }
- }
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,76 +1,105 @@
// @target: ES6
async function fAsync() {
- // Without explicit type annotation, this is just an array.
- return [1, true];
+ // Without explicit type annotation, this is just an array.
+ return [1, true];
}
async function fAsyncExplicit(): Promise<[number, boolean]> {
- // This is contextually typed as a tuple.
- return [1, true];
+ // This is contextually typed as a tuple.
+ return [1, true];
}
// https://github.com/Microsoft/TypeScript/issues/13128
interface Obj {
- stringProp: string;
- anyProp: any;
+ stringProp: string,
+ anyProp: any
}
async function fIndexedTypeForStringProp(obj: Obj): Promise<Obj["stringProp"]> {
- return obj.stringProp;
+ return obj.stringProp;
}
-async function fIndexedTypeForPromiseOfStringProp(obj: Obj): Promise<Obj["stringProp"]> {
- return Promise.resolve(obj.stringProp);
+async function fIndexedTypeForPromiseOfStringProp(
+ obj: Obj
+): Promise<Obj["stringProp"]> {
+ return Promise.resolve(obj.stringProp);
}
-async function fIndexedTypeForExplicitPromiseOfStringProp(obj: Obj): Promise<Obj["stringProp"]> {
- return Promise.resolve<Obj["stringProp"]>(obj.stringProp);
+async function fIndexedTypeForExplicitPromiseOfStringProp(
+ obj: Obj
+): Promise<Obj["stringProp"]> {
+ return Promise.resolve(obj.stringProp);
}
async function fIndexedTypeForAnyProp(obj: Obj): Promise<Obj["anyProp"]> {
- return obj.anyProp;
+ return obj.anyProp;
}
-async function fIndexedTypeForPromiseOfAnyProp(obj: Obj): Promise<Obj["anyProp"]> {
- return Promise.resolve(obj.anyProp);
+async function fIndexedTypeForPromiseOfAnyProp(
+ obj: Obj
+): Promise<Obj["anyProp"]> {
+ return Promise.resolve(obj.anyProp);
}
-async function fIndexedTypeForExplicitPromiseOfAnyProp(obj: Obj): Promise<Obj["anyProp"]> {
- return Promise.resolve<Obj["anyProp"]>(obj.anyProp);
+async function fIndexedTypeForExplicitPromiseOfAnyProp(
+ obj: Obj
+): Promise<Obj["anyProp"]> {
+ return Promise.resolve(obj.anyProp);
}
-async function fGenericIndexedTypeForStringProp<TObj extends Obj>(obj: TObj): Promise<TObj["stringProp"]> {
- return obj.stringProp;
+async function fGenericIndexedTypeForStringProp<TObj extends Obj>(
+ obj: TObj
+): Promise<TObj["stringProp"]> {
+ return obj.stringProp;
}
-async function fGenericIndexedTypeForPromiseOfStringProp<TObj extends Obj>(obj: TObj): Promise<TObj["stringProp"]> {
- return Promise.resolve(obj.stringProp);
+async function fGenericIndexedTypeForPromiseOfStringProp<TObj extends Obj>(
\ No newline at end of file
+ obj: TObj
+): Promise<TObj["stringProp"]> {
+ return Promise.resolve(obj.stringProp);
}
-async function fGenericIndexedTypeForExplicitPromiseOfStringProp<TObj extends Obj>(obj: TObj): Promise<TObj["stringProp"]> {
- return Promise.resolve<TObj["stringProp"]>(obj.stringProp);
+async function fGenericIndexedTypeForExplicitPromiseOfStringProp<
+ TObj extends Obj
+>(obj: TObj): Promise<TObj["stringProp"]> {
+ return Promise.resolve(obj.stringProp);
}
-async function fGenericIndexedTypeForAnyProp<TObj extends Obj>(obj: TObj): Promise<TObj["anyProp"]> {
- return obj.anyProp;
+async function fGenericIndexedTypeForAnyProp<TObj extends Obj>(
+ obj: TObj
+): Promise<TObj["anyProp"]> {
+ return obj.anyProp;
}
-async function fGenericIndexedTypeForPromiseOfAnyProp<TObj extends Obj>(obj: TObj): Promise<TObj["anyProp"]> {
- return Promise.resolve(obj.anyProp);
+async function fGenericIndexedTypeForPromiseOfAnyProp<TObj extends Obj>(
+ obj: TObj
+): Promise<TObj["anyProp"]> {
+ return Promise.resolve(obj.anyProp);
}
-async function fGenericIndexedTypeForExplicitPromiseOfAnyProp<TObj extends Obj>(obj: TObj): Promise<TObj["anyProp"]> {
- return Promise.resolve<TObj["anyProp"]>(obj.anyProp);
+async function fGenericIndexedTypeForExplicitPromiseOfAnyProp<TObj extends Obj>(
+ obj: TObj
+): Promise<TObj["anyProp"]> {
+ return Promise.resolve(obj.anyProp);
}
-async function fGenericIndexedTypeForKProp<TObj extends Obj, K extends keyof TObj>(obj: TObj, key: K): Promise<TObj[K]> {
- return obj[key];
+async function fGenericIndexedTypeForKProp<
+ TObj extends Obj,
+ K extends keyof TObj
+>(obj: TObj, key: K): Promise<TObj[K]> {
+ return obj[key];
}
-async function fGenericIndexedTypeForPromiseOfKProp<TObj extends Obj, K extends keyof TObj>(obj: TObj, key: K): Promise<TObj[K]> {
- return Promise.resolve(obj[key]);
+async function fGenericIndexedTypeForPromiseOfKProp<
+ TObj extends Obj,
+ K extends keyof TObj
+>(obj: TObj, key: K): Promise<TObj[K]> {
+ return Promise.resolve(obj[key]);
}
-async function fGenericIndexedTypeForExplicitPromiseOfKProp<TObj extends Obj, K extends keyof TObj>(obj: TObj, key: K): Promise<TObj[K]> {
- return Promise.resolve<TObj[K]>(obj[key]);
-}
+async function fGenericIndexedTypeForExplicitPromiseOfKProp<
+ TObj extends Obj,
+ K extends keyof TObj
+>(obj: TObj, key: K): Promise<TObj[K]> {
+ return Promise.resolve(obj[key]);
+}
../TypeScript/tests//cases/compiler/asyncFunctionsAcrossFiles.ts
../TypeScript/tests//cases/compiler/asyncFunctionsAndStrictNullChecks.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,33 +14,20 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Foundation"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSInterfaceDeclaration",
- "name": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeParameters": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Foundation"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "TSTypeParameter",
+ "type": "TSInterfaceDeclaration",
"name": {
"type": "Identifier",
- "name": "TResult"
- }
- }
- ],
- "members": [
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "then"
+ "name": "IPromise"
},
"typeParameters": [
@@ -49,21 +36,40 @@
"name": {
"type": "Identifier",
- "name": "U"
+ "name": "TResult"
}
}
],
- "parameters": [
+ "members": [
{
- "type": "Identifier",
- "name": "success",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "value",
+ "type": "TSMethodSignature",
+ "name": {
+ "type": "Identifier",
+ "name": "then"
+ },
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "success",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TResult"
+ }
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
@@ -72,152 +78,143 @@
"typeName": {
"type": "Identifier",
- "name": "TResult"
- }
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
+ }
+ ]
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "error",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
+ "type": "TSFunctionType",
+ "parameters": [
{
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
+ "type": "Identifier",
+ "name": "error",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
}
}
- ]
- }
- }
- }
- }
- },
- {
- "type": "Identifier",
- "name": "error",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "error",
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
+ }
+ ]
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
+ "type": "TSFunctionType",
+ "parameters": [
{
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
+ "type": "Identifier",
+ "name": "progress",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
}
}
- ]
- }
- }
- }
- }
- },
- {
- "type": "Identifier",
- "name": "progress",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "progress",
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
+ "type": "TSVoidKeyword"
}
}
}
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
}
}
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
- {
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
"type": "TSTypeReference",
"typeName": {
"type": "Identifier",
- "name": "U"
- }
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
+ }
+ ]
}
- ]
- }
- }
- },
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "then"
- },
- "typeParameters": [
+ }
+ },
{
- "type": "TSTypeParameter",
+ "type": "TSMethodSignature",
"name": {
"type": "Identifier",
- "name": "U"
- }
- }
- ],
- "parameters": [
- {
- "type": "Identifier",
- "name": "success",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "value",
+ "name": "then"
+ },
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "success",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TResult"
+ }
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
@@ -226,20 +223,43 @@
"typeName": {
"type": "Identifier",
- "name": "TResult"
- }
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
+ }
+ ]
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "error",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
+ "type": "TSFunctionType",
+ "parameters": [
{
+ "type": "Identifier",
+ "name": "error",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
"type": "TSTypeReference",
"typeName": {
@@ -248,33 +268,48 @@
}
}
- ]
+ }
}
}
- }
- }
- },
- {
- "type": "Identifier",
- "name": "error",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "error",
+ },
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
+ "type": "TSVoidKeyword"
}
}
}
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
"type": "TSTypeReference",
"typeName": {
@@ -283,86 +318,72 @@
}
}
- }
+ ]
}
}
},
{
- "type": "Identifier",
- "name": "progress",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "progress",
+ "type": "TSMethodSignature",
+ "name": {
+ "type": "Identifier",
+ "name": "then"
+ },
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "success",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TResult"
+ }
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "error",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
- }
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ]
- }
- }
- },
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "then"
- },
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
- "parameters": [
- {
- "type": "Identifier",
- "name": "success",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "value",
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "error",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
@@ -371,13 +392,60 @@
"typeName": {
"type": "Identifier",
- "name": "TResult"
- }
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "U"
+ }
+ }
+ ]
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSVoidKeyword"
+ }
+ }
+ }
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "IPromise"
+ },
+ "typeArguments": [
+ {
"type": "TSTypeReference",
"typeName": {
@@ -386,38 +454,42 @@
}
}
- }
+ ]
}
}
},
{
- "type": "Identifier",
- "name": "error",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "error",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- }
- }
- ],
+ "type": "TSMethodSignature",
+ "name": {
+ "type": "Identifier",
+ "name": "then"
+ },
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "success",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
+ "type": "TSFunctionType",
+ "parameters": [
{
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TResult"
+ }
+ }
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
"type": "TSTypeReference",
"typeName": {
@@ -426,88 +498,28 @@
}
}
- ]
+ }
}
}
- }
- }
- },
- {
- "type": "Identifier",
- "name": "progress",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "progress",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- }
- }
- ],
+ },
+ {
+ "type": "Identifier",
+ "name": "error",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
- }
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ]
- }
- }
- },
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "then"
- },
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
- "parameters": [
- {
- "type": "Identifier",
- "name": "success",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "value",
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "error",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
@@ -516,46 +528,51 @@
"typeName": {
"type": "Identifier",
- "name": "TResult"
+ "name": "U"
}
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSVoidKeyword"
+ }
}
}
}
}
- }
- },
- {
- "type": "Identifier",
- "name": "error",
- "optional": true,
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "IPromise"
+ },
+ "typeArguments": [
{
- "type": "Identifier",
- "name": "error",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
"type": "TSTypeReference",
"typeName": {
@@ -564,20 +581,39 @@
}
}
- }
+ ]
}
}
},
{
- "type": "Identifier",
- "name": "progress",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "progress",
+ "type": "TSMethodSignature",
+ "name": {
+ "type": "Identifier",
+ "name": "done"
+ },
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "success",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TResult"
+ }
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
@@ -587,168 +623,92 @@
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "error",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
- }
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "IPromise"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ]
- }
- }
- },
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "done"
- },
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
- "parameters": [
- {
- "type": "Identifier",
- "name": "success",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "value",
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "error",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TResult"
- }
+ "type": "TSAnyKeyword"
}
}
}
- ],
+ }
+ },
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "optional": true,
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- }
- }
- }
- },
- {
- "type": "Identifier",
- "name": "error",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "error",
+ "type": "TSFunctionType",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "progress",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSAnyKeyword"
+ "type": "TSVoidKeyword"
}
}
}
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
}
}
+ ],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSVoidKeyword"
+ }
}
},
{
- "type": "Identifier",
- "name": "progress",
- "optional": true,
+ "type": "TSMethodSignature",
+ "name": {
+ "type": "Identifier",
+ "name": "cancel"
+ },
+ "parameters": [],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSFunctionType",
- "parameters": [
- {
- "type": "Identifier",
- "name": "progress",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- }
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
+ "type": "TSVoidKeyword"
}
}
}
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
- },
- {
- "type": "TSMethodSignature",
- "name": {
- "type": "Identifier",
- "name": "cancel"
- },
- "parameters": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- }
+ ]
}
]
}
- ]
- }
+ }
+ ]
}
},
@@ -774,12 +734,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "Windows"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foundation"
- }
+ "name": "undefined"
},
"property": {
@@ -913,12 +866,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "Windows"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foundation"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -2,26 +2,37 @@
// @strictNullChecks: true
-declare namespace Windows.Foundation {
+declare module Windows {
+ module Foundation {
interface IPromise<TResult> {
- then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;
- then<U>(success?: (value: TResult) => IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>;
- then<U>(success?: (value: TResult) => U, error?: (error: any) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>;
- then<U>(success?: (value: TResult) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise<U>;
- done<U>(success?: (value: TResult) => any, error?: (error: any) => any, progress?: (progress: any) => void): void;
+ then(success?: (value: TResult) => IPromise<U>, error?: (
+ error: any
+ ) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>,
+ then(success?: (value: TResult) => IPromise<U>, error?: (
+ error: any
+ ) => U, progress?: (progress: any) => void): IPromise<U>,
+ then(success?: (value: TResult) => U, error?: (
+ error: any
+ ) => IPromise<U>, progress?: (progress: any) => void): IPromise<U>,
+ then(success?: (value: TResult) => U, error?: (
+ error: any
+ ) => U, progress?: (progress: any) => void): IPromise<U>,
+ done(success?: (value: TResult) => any, error?: (
+ error: any
+ ) => any, progress?: (progress: any) => void): void,
- cancel(): void;
+ cancel(): void
}
+ }
}
-async function sample(promise: Windows.Foundation.IPromise<number>) {
- var number = await promise;
+async function sample(promise: undefined.IPromise<number>) {
+ var number = await promise;
}
+declare function resolve1<T>(value: T): Promise<T>
+declare function resolve2<T>(value: T): undefined.IPromise<T>
-declare function resolve1<T>(value: T): Promise<T>;
-declare function resolve2<T>(value: T): Windows.Foundation.IPromise<T>;
-
async function sample2(x?: number) {
- let x1 = await resolve1(x);
- let x2 = await resolve2(x);
+ let x1 = await resolve1(x);
+ let x2 = await resolve2(x);
}
../TypeScript/tests//cases/compiler/asyncFunctionWithForStatementNoInitializer.ts
../TypeScript/tests//cases/compiler/asyncIIFE.ts
../TypeScript/tests//cases/compiler/augmentArray.ts
../TypeScript/tests//cases/compiler/augmentedClassWithPrototypePropertyOnModule.ts
../TypeScript/tests//cases/compiler/augmentedTypeBracketNamedPropertyAccess.ts
../TypeScript/tests//cases/compiler/augmentedTypesClass.ts
../TypeScript/tests//cases/compiler/augmentedTypesClass2.ts
../TypeScript/tests//cases/compiler/augmentedTypesClass2a.ts
../TypeScript/tests//cases/compiler/augmentedTypesClass3.ts
../TypeScript/tests//cases/compiler/augmentedTypesClass4.ts
../TypeScript/tests//cases/compiler/augmentedTypesEnum.ts
../TypeScript/tests//cases/compiler/augmentedTypesEnum2.ts
../TypeScript/tests//cases/compiler/augmentedTypesEnum3.ts
../TypeScript/tests//cases/compiler/augmentedTypesExternalModule1.ts
../TypeScript/tests//cases/compiler/augmentedTypesFunction.ts
../TypeScript/tests//cases/compiler/augmentedTypesInterface.ts
../TypeScript/tests//cases/compiler/augmentedTypesModules.ts
../TypeScript/tests//cases/compiler/augmentedTypesModules2.ts
../TypeScript/tests//cases/compiler/augmentedTypesModules3.ts
../TypeScript/tests//cases/compiler/augmentedTypesModules3b.ts
../TypeScript/tests//cases/compiler/augmentedTypesModules4.ts
../TypeScript/tests//cases/compiler/augmentedTypesVar.ts
../TypeScript/tests//cases/compiler/augmentExportEquals1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,19 +2,14 @@
// @filename: file1.ts
var x = 1;
-export default x;
+export default x; // @filename: file2.ts
-
-import // @filename: file2.ts
-
-x = require("./file1");
+import x = require("./file1");
// augmentation for './file1'
// should error since './file1' does not have namespace meaning
declare module "./file1" {
interface A { a }
-}
+} // @filename: file3.ts
-
-import // @filename: file3.ts
-x = require("./file1");
+import x = require("./file1");
import "./file2";
let a: x.A; // should not work
../TypeScript/tests//cases/compiler/augmentExportEquals1_1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
declare module "file1" {
var x: number;export default x;
-}
+} // @filename: file2.ts
-import // @filename: file2.ts
-/// <reference path="file1.d.ts"/>
+import /// <reference path="file1.d.ts"/>
x = require("file1");
// augmentation for 'file1'
@@ -14,9 +13,7 @@
declare module "file1" {
interface A { a }
-}
+} // @filename: file3.ts
-
-import // @filename: file3.ts
-x = require("file1");
+import x = require("file1");
import "file2";
let a: x.A; // should not work
../TypeScript/tests//cases/compiler/augmentExportEquals2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,17 +3,14 @@
// @filename: file1.ts
function foo() {}
-export default foo;
+export default foo; // @filename: file2.ts
-
-import // @filename: file2.ts
-x = require("./file1");
+import x = require("./file1");
// should error since './file1' does not have namespace meaning
declare module "./file1" {
interface A { a }
-}
+} // @filename: file3.ts
import // @filename: file3.ts
-// @filename: file3.ts
x = require("./file1");
import "./file2";
../TypeScript/tests//cases/compiler/augmentExportEquals2_1.ts
../TypeScript/tests//cases/compiler/augmentExportEquals2_1.ts: { index: 94,
lineNumber: 5,
column: 23,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/augmentExportEquals3.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,7 @@
export var v = 1;
}
-export default foo;
+export default foo; // @filename: file2.ts
-
-import // @filename: file2.ts
-x = require("./file1");
+import x = require("./file1");
x.b = 1;
../TypeScript/tests//cases/compiler/augmentExportEquals3_1.ts
../TypeScript/tests//cases/compiler/augmentExportEquals3_1.ts: { index: 89,
lineNumber: 4,
column: 23,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/augmentExportEquals4.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,7 @@
export var v = 1;
}
-export default foo;
+export default foo; // @filename: file2.ts
-
-import // @filename: file2.ts
-x = require("./file1");
+import x = require("./file1");
x.b = 1;
../TypeScript/tests//cases/compiler/augmentExportEquals4_1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
declare module "file1" {
class foo {}module foo { export var v: number; }export default foo;
-}
+} // @filename: file2.ts
-import // @filename: file2.ts
-/// <reference path="file1.d.ts"/>
+import /// <reference path="file1.d.ts"/>
x = require("file1");
x.b = 1;
../TypeScript/tests//cases/compiler/augmentExportEquals5.ts
../TypeScript/tests//cases/compiler/augmentExportEquals5.ts: { index: 224,
lineNumber: 10,
column: 26,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/augmentExportEquals6.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,7 @@
export class A {}export module B { export let a; }
}
-export default foo;
+export default foo; // @filename: file2.ts
-
-import // @filename: file2.ts
-x = require("./file1");
+import x = require("./file1");
x.B.b = 1;
../TypeScript/tests//cases/compiler/augmentExportEquals6_1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
declare module "file1" {
class foo {}module foo { class A {} }export default foo;
-}
+} // @filename: file2.ts
-import // @filename: file2.ts
-/// <reference path="file1.d.ts"/>
+import /// <reference path="file1.d.ts"/>
x = require("file1");
// OK - './file1' is a namespace
../TypeScript/tests//cases/compiler/augmentExportEquals7.ts
../TypeScript/tests//cases/compiler/autoAsiForStaticsInClassDeclaration.ts
../TypeScript/tests//cases/compiler/autoLift2.ts
../TypeScript/tests//cases/compiler/autoLift2.ts: { index: 51,
lineNumber: 5,
column: 16,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/autolift3.ts
../TypeScript/tests//cases/compiler/autolift4.ts
../TypeScript/tests//cases/compiler/autonumberingInEnums.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "a"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
Index:
===================================================================
---
+++
@@ -1,7 +1,3 @@
-enum Foo {
- a = 1
-}
+enum Foo { a }
-enum Foo {
- b // should work fine
\ No newline at end of file
-}
+enum Foo { b } // should work fine
../TypeScript/tests//cases/compiler/avoid.ts
../TypeScript/tests//cases/compiler/badArrayIndex.ts
../TypeScript/tests//cases/compiler/badArrayIndex.ts: TypeError: Cannot read property 'type' of null
at printMemberLookup (/Users/despairblue/git/prettier/src/printer.js:3062:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:283:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1129:24)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/badArraySyntax.ts
../TypeScript/tests//cases/compiler/badArraySyntax.ts: TypeError: Cannot read property 'type' of null
at printMemberLookup (/Users/despairblue/git/prettier/src/printer.js:3062:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:283:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1080:31)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/badExternalModuleReference.ts
../TypeScript/tests//cases/compiler/badOverloadError.ts
../TypeScript/tests//cases/compiler/badOverloadError.ts: { index: 42,
lineNumber: 2,
column: 21,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/badThisBinding.ts
../TypeScript/tests//cases/compiler/bangInModuleName.ts
../TypeScript/tests//cases/compiler/baseCheck.ts
../TypeScript/tests//cases/compiler/baseConstraintOfDecorator.ts
../TypeScript/tests//cases/compiler/baseIndexSignatureResolution.ts
../TypeScript/tests//cases/compiler/baseIndexSignatureResolution.ts: { index: 215,
lineNumber: 12,
column: 22,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/bases.ts
../TypeScript/tests//cases/compiler/bases.ts: { index: 74,
lineNumber: 7,
column: 14,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/baseTypeAfterDerivedType.ts
../TypeScript/tests//cases/compiler/baseTypeOrderChecking.ts
../TypeScript/tests//cases/compiler/baseTypePrivateMemberClash.ts
../TypeScript/tests//cases/compiler/baseTypeWrappingInstantiationChain.ts
../TypeScript/tests//cases/compiler/bestChoiceType.ts
../TypeScript/tests//cases/compiler/bestCommonTypeReturnStatement.ts
../TypeScript/tests//cases/compiler/bestCommonTypeWithContextualTyping.ts
../TypeScript/tests//cases/compiler/bestCommonTypeWithOptionalProperties.ts
../TypeScript/tests//cases/compiler/binaryArithmatic1.ts
../TypeScript/tests//cases/compiler/binaryArithmatic2.ts
../TypeScript/tests//cases/compiler/binaryArithmatic3.ts
../TypeScript/tests//cases/compiler/binaryArithmatic4.ts
../TypeScript/tests//cases/compiler/bind1.ts
../TypeScript/tests//cases/compiler/bind2.ts
../TypeScript/tests//cases/compiler/bindingPatternInParameter01.ts
../TypeScript/tests//cases/compiler/binopAssignmentShouldHaveType.ts
../TypeScript/tests//cases/compiler/bitwiseCompoundAssignmentOperators.ts
../TypeScript/tests//cases/compiler/blockScopedBindingCaptureThisInFunction.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsInDownlevelGenerator.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop1.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop2.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop3.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop4.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop5.ts
../TypeScript/tests//cases/compiler/blockScopedBindingsReassignedInLoop6.ts
../TypeScript/tests//cases/compiler/blockScopedBindingUsedBeforeDef.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationES5.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationES6.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationInStrictClass.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationStrictES5.ts
../TypeScript/tests//cases/compiler/blockScopedFunctionDeclarationStrictES6.ts
../TypeScript/tests//cases/compiler/blockScopedSameNameFunctionDeclarationES5.ts
../TypeScript/tests//cases/compiler/blockScopedSameNameFunctionDeclarationES6.ts
../TypeScript/tests//cases/compiler/blockScopedSameNameFunctionDeclarationStrictES5.ts
../TypeScript/tests//cases/compiler/blockScopedSameNameFunctionDeclarationStrictES6.ts
../TypeScript/tests//cases/compiler/blockScopedVariablesUseBeforeDef.ts
../TypeScript/tests//cases/compiler/bluebirdStaticThis.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9026,13 +9026,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -9149,13 +9140,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -9264,13 +9246,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -9378,13 +9351,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -4,122 +4,359 @@
// Tests by: Bart van der Schoor <https://github.com/Bartvds>
export declare class Promise<R> implements Promise.Thenable<R> {
- constructor(callback: (resolve: (thenableOrResult: R | Promise.Thenable<R>) => void, reject: (error: any) => void) => void);
- static try<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>;
- static try<R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>;
+ constructor(
+ callback: (
+ resolve: (thenableOrResult: R | Promise.Thenable<R>) => void,
+ reject: (error: any) => void
+ ) => void
+ );
+ static try<R>(
+ dit: typeof Promise,
+ fn: () => Promise.Thenable<R>,
+ args?: any[],
+ ctx?: any
+ ): Promise<R>;
+ static try<R>(
+ dit: typeof Promise,
+ fn: () => R,
+ args?: any[],
+ ctx?: any
+ ): Promise<R>;
- static attempt<R>(dit: typeof Promise, fn: () => Promise.Thenable<R>, args?: any[], ctx?: any): Promise<R>;
- static attempt<R>(dit: typeof Promise, fn: () => R, args?: any[], ctx?: any): Promise<R>;
+ static attempt<R>(
+ dit: typeof Promise,
+ fn: () => Promise.Thenable<R>,
+ args?: any[],
+ ctx?: any
+ ): Promise<R>;
+ static attempt<R>(
+ dit: typeof Promise,
+ fn: () => R,
+ args?: any[],
+ ctx?: any
+ ): Promise<R>;
- static method(dit: typeof Promise, fn: Function): Function;
+ static method(dit: typeof Promise, fn: Function): Function;
- static resolve(dit: typeof Promise): Promise<void>;
- static resolve<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>;
- static resolve<R>(dit: typeof Promise, value: R): Promise<R>;
+ static resolve(dit: typeof Promise): Promise<void>;
+ static resolve<R>(
+ dit: typeof Promise,
+ value: Promise.Thenable<R>
+ ): Promise<R>;
+ static resolve<R>(dit: typeof Promise, value: R): Promise<R>;
- static reject(dit: typeof Promise, reason: any): Promise<any>;
- static reject<R>(dit: typeof Promise, reason: any): Promise<R>;
+ static reject(dit: typeof Promise, reason: any): Promise<any>;
+ static reject<R>(dit: typeof Promise, reason: any): Promise<R>;
- static defer<R>(dit: typeof Promise): Promise.Resolver<R>;
+ static defer<R>(dit: typeof Promise): Promise.Resolver<R>;
- static cast<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>;
- static cast<R>(dit: typeof Promise, value: R): Promise<R>;
+ static cast<R>(dit: typeof Promise, value: Promise.Thenable<R>): Promise<R>;
+ static cast<R>(dit: typeof Promise, value: R): Promise<R>;
- static bind(dit: typeof Promise, thisArg: any): Promise<void>;
+ static bind(dit: typeof Promise, thisArg: any): Promise<void>;
- static is(dit: typeof Promise, value: any): boolean;
+ static is(dit: typeof Promise, value: any): boolean;
- static longStackTraces(dit: typeof Promise): void;
+ static longStackTraces(dit: typeof Promise): void;
- static delay<R>(dit: typeof Promise, value: Promise.Thenable<R>, ms: number): Promise<R>;
- static delay<R>(dit: typeof Promise, value: R, ms: number): Promise<R>;
- static delay(dit: typeof Promise, ms: number): Promise<void>;
+ static delay<R>(
+ dit: typeof Promise,
+ value: Promise.Thenable<R>,
+ ms: number
+ ): Promise<R>;
+ static delay<R>(dit: typeof Promise, value: R, ms: number): Promise<R>;
+ static delay(dit: typeof Promise, ms: number): Promise<void>;
- static promisify(dit: typeof Promise, nodeFunction: Function, receiver?: any): Function;
+ static promisify(
+ dit: typeof Promise,
+ nodeFunction: Function,
+ receiver?: any
+ ): Function;
- static promisifyAll(dit: typeof Promise, target: Object): Object;
+ static promisifyAll(dit: typeof Promise, target: Object): Object;
- static coroutine<R>(dit: typeof Promise, generatorFunction: Function): Function;
+ static coroutine<R>(
+ dit: typeof Promise,
+ generatorFunction: Function
+ ): Function;
- static spawn<R>(dit: typeof Promise, generatorFunction: Function): Promise<R>;
+ static spawn<R>(dit: typeof Promise, generatorFunction: Function): Promise<R>;
- static noConflict(dit: typeof Promise): typeof Promise;
+ static noConflict(dit: typeof Promise): typeof Promise;
- static onPossiblyUnhandledRejection(dit: typeof Promise, handler: (reason: any) => any): void;
+ static onPossiblyUnhandledRejection(
+ dit: typeof Promise,
+ handler: (reason: any) => any
+ ): void;
- static all<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<R[]>;
- static all<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R[]>;
- static all<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R[]>;
- static all<R>(dit: typeof Promise, values: R[]): Promise<R[]>;
+ static all<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>
+ ): Promise<R[]>;
+ static all<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>
+ ): Promise<R[]>;
+ static all<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[]
+ ): Promise<R[]>;
+ static all<R>(dit: typeof Promise, values: R[]): Promise<R[]>;
- static props(dit: typeof Promise, object: Promise<Object>): Promise<Object>;
- static props(dit: typeof Promise, object: Object): Promise<Object>;
+ static props(dit: typeof Promise, object: Promise<Object>): Promise<Object>;
+ static props(dit: typeof Promise, object: Object): Promise<Object>;
- static settle<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<Promise.Inspection<R>[]>;
- static settle<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<Promise.Inspection<R>[]>;
- static settle<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<Promise.Inspection<R>[]>;
- static settle<R>(dit: typeof Promise, values: R[]): Promise<Promise.Inspection<R>[]>;
+ static settle<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>
+ ): Promise<Promise.Inspection<R>[]>;
+ static settle<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>
+ ): Promise<Promise.Inspection<R>[]>;
+ static settle<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[]
+ ): Promise<Promise.Inspection<R>[]>;
+ static settle<R>(
+ dit: typeof Promise,
+ values: R[]
+ ): Promise<Promise.Inspection<R>[]>;
- static any<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<R>;
- static any<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R>;
- static any<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R>;
- static any<R>(dit: typeof Promise, values: R[]): Promise<R>;
+ static any<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>
+ ): Promise<R>;
+ static any<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R>;
+ static any<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R>;
+ static any<R>(dit: typeof Promise, values: R[]): Promise<R>;
- static race<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>): Promise<R>;
- static race<R>(dit: typeof Promise, values: Promise.Thenable<R[]>): Promise<R>;
- static race<R>(dit: typeof Promise, values: Promise.Thenable<R>[]): Promise<R>;
- static race<R>(dit: typeof Promise, values: R[]): Promise<R>;
+ static race<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>
+ ): Promise<R>;
+ static race<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>
+ ): Promise<R>;
+ static race<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[]
+ ): Promise<R>;
+ static race<R>(dit: typeof Promise, values: R[]): Promise<R>;
- static some<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, count: number): Promise<R[]>;
- static some<R>(dit: typeof Promise, values: Promise.Thenable<R[]>, count: number): Promise<R[]>;
- static some<R>(dit: typeof Promise, values: Promise.Thenable<R>[], count: number): Promise<R[]>;
- static some<R>(dit: typeof Promise, values: R[], count: number): Promise<R[]>;
+ static some<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ count: number
+ ): Promise<R[]>;
+ static some<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ count: number
+ ): Promise<R[]>;
+ static some<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ count: number
+ ): Promise<R[]>;
+ static some<R>(dit: typeof Promise, values: R[], count: number): Promise<R[]>;
- static join<R>(dit: typeof Promise, ...values: Promise.Thenable<R>[]): Promise<R[]>;
- static join<R>(dit: typeof Promise, ...values: R[]): Promise<R[]>;
+ static join<R>(
+ dit: typeof Promise,
+ ...values: Promise.Thenable<R>[]
+ ): Promise<R[]>;
+ static join<R>(dit: typeof Promise, ...values: R[]): Promise<R[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, mapper: (item: R, index: number, arrayLength: number) => U): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<R[]>, mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<R[]>, mapper: (item: R, index: number, arrayLength: number) => U): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<R>[], mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: Promise.Thenable<R>[], mapper: (item: R, index: number, arrayLength: number) => U): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: R[], mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>): Promise<U[]>;
- static map<R, U>(dit: typeof Promise, values: R[], mapper: (item: R, index: number, arrayLength: number) => U): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ mapper: (item: R, index: number, arrayLength: number) => U
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ mapper: (item: R, index: number, arrayLength: number) => U
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ mapper: (item: R, index: number, arrayLength: number) => U
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: R[],
+ mapper: (item: R, index: number, arrayLength: number) => Promise.Thenable<U>
+ ): Promise<U[]>;
+ static map<R, U>(
+ dit: typeof Promise,
+ values: R[],
+ mapper: (item: R, index: number, arrayLength: number) => U
+ ): Promise<U[]>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, reducer: (total: U, current: R, index: number, arrayLength: number) => Promise.Thenable<U>, initialValue?: U): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, reducer: (total: U, current: R, index: number, arrayLength: number) => U, initialValue?: U): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ reducer: (
+ total: U,
+ current: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<U>,
+ initialValue?: U
+ ): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ reducer: (total: U, current: R, index: number, arrayLength: number) => U,
+ initialValue?: U
+ ): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<R[]>, reducer: (total: U, current: R, index: number, arrayLength: number) => Promise.Thenable<U>, initialValue?: U): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<R[]>, reducer: (total: U, current: R, index: number, arrayLength: number) => U, initialValue?: U): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ reducer: (
+ total: U,
+ current: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<U>,
+ initialValue?: U
+ ): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ reducer: (total: U, current: R, index: number, arrayLength: number) => U,
+ initialValue?: U
+ ): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<R>[], reducer: (total: U, current: R, index: number, arrayLength: number) => Promise.Thenable<U>, initialValue?: U): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: Promise.Thenable<R>[], reducer: (total: U, current: R, index: number, arrayLength: number) => U, initialValue?: U): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ reducer: (
+ total: U,
+ current: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<U>,
+ initialValue?: U
+ ): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ reducer: (total: U, current: R, index: number, arrayLength: number) => U,
+ initialValue?: U
+ ): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: R[], reducer: (total: U, current: R, index: number, arrayLength: number) => Promise.Thenable<U>, initialValue?: U): Promise<U>;
- static reduce<R, U>(dit: typeof Promise, values: R[], reducer: (total: U, current: R, index: number, arrayLength: number) => U, initialValue?: U): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: R[],
+ reducer: (
+ total: U,
+ current: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<U>,
+ initialValue?: U
+ ): Promise<U>;
+ static reduce<R, U>(
+ dit: typeof Promise,
+ values: R[],
+ reducer: (total: U, current: R, index: number, arrayLength: number) => U,
+ initialValue?: U
+ ): Promise<U>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<Promise.Thenable<R>[]>, filterer: (item: R, index: number, arrayLength: number) => boolean): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<R[]>, filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<R[]>, filterer: (item: R, index: number, arrayLength: number) => boolean): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<R>[], filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: Promise.Thenable<R>[], filterer: (item: R, index: number, arrayLength: number) => boolean): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: R[], filterer: (item: R, index: number, arrayLength: number) => Promise.Thenable<boolean>): Promise<R[]>;
- static filter<R>(dit: typeof Promise, values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ filterer: (
+ item: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<boolean>
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<Promise.Thenable<R>[]>,
+ filterer: (item: R, index: number, arrayLength: number) => boolean
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ filterer: (
+ item: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<boolean>
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R[]>,
+ filterer: (item: R, index: number, arrayLength: number) => boolean
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ filterer: (
+ item: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<boolean>
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: Promise.Thenable<R>[],
+ filterer: (item: R, index: number, arrayLength: number) => boolean
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: R[],
+ filterer: (
+ item: R,
+ index: number,
+ arrayLength: number
+ ) => Promise.Thenable<boolean>
+ ): Promise<R[]>;
+ static filter<R>(
+ dit: typeof Promise,
+ values: R[],
+ filterer: (item: R, index: number, arrayLength: number) => boolean
+ ): Promise<R[]>;
}
export declare module Promise {
- export interface Thenable<R> {
- then<U>(onFulfilled: (value: R) => Thenable<U>, onRejected: (error: any) => Thenable<U>): Thenable<U>;
- then<U>(onFulfilled: (value: R) => Thenable<U>, onRejected?: (error: any) => U): Thenable<U>;
- then<U>(onFulfilled: (value: R) => U, onRejected: (error: any) => Thenable<U>): Thenable<U>;
- then<U>(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U): Thenable<U>;
- }
-
+ export interface Thenable<R> {
+ then(onFulfilled: (value: R) => Thenable<U>, onRejected: (
+ error: any
+ ) => Thenable<U>): Thenable<U>,
+ then(onFulfilled: (value: R) => Thenable<U>, onRejected?: (
+ error: any
+ ) => U): Thenable<U>,
+ then(onFulfilled: (value: R) => U, onRejected: (
+ error: any
+ ) => Thenable<U>): Thenable<U>,
+ then(onFulfilled?: (value: R) => U, onRejected?: (
+ error: any
+ ) => U): Thenable<U>
+ }
}
interface Foo {
- a: number;
- b: string;
+ a: number,
+ b: string
}
var x: any;
@@ -129,10 +366,19 @@
fooProm = Promise.try(Promise, () => {
- return foo;
+ return foo;
});
-fooProm = Promise.try(Promise, () => {
- return foo;
-}, arr);
-fooProm = Promise.try(Promise, () => {
- return foo;
\ No newline at end of file
-}, arr, x);
+fooProm = Promise.try(
+ Promise,
+ () => {
+ return foo;
+ },
+ arr
+);
+fooProm = Promise.try(
+ Promise,
+ () => {
+ return foo;
+ },
+ arr,
+ x
+);
../TypeScript/tests//cases/compiler/bom-utf16be.ts
../TypeScript/tests//cases/compiler/bom-utf16be.ts: { index: 0,
lineNumber: 1,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/bom-utf16le.ts
../TypeScript/tests//cases/compiler/bom-utf16le.ts: { index: 0,
lineNumber: 1,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/bom-utf8.ts
../TypeScript/tests//cases/compiler/booleanAssignment.ts
../TypeScript/tests//cases/compiler/breakInIterationOrSwitchStatement1.ts
../TypeScript/tests//cases/compiler/breakInIterationOrSwitchStatement2.ts
../TypeScript/tests//cases/compiler/breakInIterationOrSwitchStatement3.ts
../TypeScript/tests//cases/compiler/breakInIterationOrSwitchStatement4.ts
../TypeScript/tests//cases/compiler/breakNotInIterationOrSwitchStatement1.ts
../TypeScript/tests//cases/compiler/breakNotInIterationOrSwitchStatement2.ts
../TypeScript/tests//cases/compiler/breakTarget1.ts
../TypeScript/tests//cases/compiler/breakTarget2.ts
../TypeScript/tests//cases/compiler/breakTarget3.ts
../TypeScript/tests//cases/compiler/breakTarget4.ts
../TypeScript/tests//cases/compiler/breakTarget5.ts
../TypeScript/tests//cases/compiler/breakTarget6.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution1.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution2.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution3.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution4.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution5.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution6.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution7.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution8.ts
../TypeScript/tests//cases/compiler/cachedModuleResolution9.ts
../TypeScript/tests//cases/compiler/cacheResolutions.ts
../TypeScript/tests//cases/compiler/callbackArgsDifferByOptionality.ts
../TypeScript/tests//cases/compiler/callbacksDontShareTypes.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -104,20 +104,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -207,13 +191,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
@@ -574,24 +549,5 @@
"expression": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -631,24 +587,5 @@
"name": "rf1"
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
interface Collection<T> {
- length: number;
- add(x: T): void;
- remove(x: T): boolean;
+ length: number,
+ add(x: T): void,
+ remove(x: T): boolean
}
interface Combinators {
- map<T, U>(c: Collection<T>, f: (x: T) => U): Collection<U>;
- map<T>(c: Collection<T>, f: (x: T) => any): Collection<any>;
+ map(c: Collection<T>, f: (x: T) => U): Collection<U>,
+ map(c: Collection<T>, f: (x: T) => any): Collection<any>
}
@@ -12,7 +12,13 @@
var c2: Collection<number>;
-var rf1 = (x: number) => { return x.toFixed() };
-var r1a = _.map(c2, (x) => { return x.toFixed() });
-var r1b = _.map(c2, rf1); // this line should not cause the following 2 to have errors
-var r5a = _.map<number, string>(c2, (x) => { return x.toFixed() });
-var r5b = _.map<number, string>(c2, rf1);
\ No newline at end of file
+var rf1 = (x: number) => {
+ return x.toFixed();
+};
+var r1a = _.map(c2, x => {
+ return x.toFixed();
+});
+var r1b = _.map(c2, rf1); // this line should not cause the following 2 to have errors
+var r5a = _.map(c2, x => {
+ return x.toFixed();
+});
+var r5b = _.map(c2, rf1);
../TypeScript/tests//cases/compiler/callConstructAssignment.ts
../TypeScript/tests//cases/compiler/callExpressionWithMissingTypeArgument1.ts
../TypeScript/tests//cases/compiler/callExpressionWithMissingTypeArgument1.ts: { index: 6, lineNumber: 1, column: 6, message: 'Type expected.' }
../TypeScript/tests//cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts
../TypeScript/tests//cases/compiler/callExpressionWithTypeParameterConstrainedToOuterTypeParameter.ts: { index: 22,
lineNumber: 2,
column: 5,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/callOnClass.ts
../TypeScript/tests//cases/compiler/callOnInstance.ts
../TypeScript/tests//cases/compiler/callOverloads1.ts
../TypeScript/tests//cases/compiler/callOverloads2.ts
../TypeScript/tests//cases/compiler/callOverloads3.ts
../TypeScript/tests//cases/compiler/callOverloads4.ts
../TypeScript/tests//cases/compiler/callOverloads5.ts
../TypeScript/tests//cases/compiler/callOverloadViaElementAccessExpression.ts
../TypeScript/tests//cases/compiler/callSignatureFunctionOverload.ts
../TypeScript/tests//cases/compiler/callSignaturesShouldBeResolvedBeforeSpecialization.ts
../TypeScript/tests//cases/compiler/callWithWrongNumberOfTypeArguments.ts
../TypeScript/tests//cases/compiler/cannotInvokeNewOnErrorExpression.ts
../TypeScript/tests//cases/compiler/cannotInvokeNewOnErrorExpression.ts: TypeError: Cannot read property 'type' of null
at printMemberLookup (/Users/despairblue/git/prettier/src/printer.js:3062:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:283:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1080:31)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/cannotInvokeNewOnIndexExpression.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop1.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop10.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop10_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop11.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop11_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop12.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop13.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop1_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop2.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop2_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop3.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop3_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop4.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop4_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop5.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop5_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop6_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop7.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop7_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop8.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop8_ES6.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop9.ts
../TypeScript/tests//cases/compiler/capturedLetConstInLoop9_ES6.ts
../TypeScript/tests//cases/compiler/capturedParametersInInitializers1.ts
../TypeScript/tests//cases/compiler/capturedParametersInInitializers1.ts: { index: 231,
lineNumber: 13,
column: 24,
message: 'JSX element \'typeof\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/capturedParametersInInitializers2.ts
../TypeScript/tests//cases/compiler/captureSuperPropertyAccessInSuperCall01.ts
../TypeScript/tests//cases/compiler/captureThisInSuperCall.ts
../TypeScript/tests//cases/compiler/castExpressionParentheses.ts
../TypeScript/tests//cases/compiler/castExpressionParentheses.ts: { index: 73,
lineNumber: 5,
column: 8,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/castNewObjectBug.ts
../TypeScript/tests//cases/compiler/castNewObjectBug.ts: { index: 29,
lineNumber: 2,
column: 10,
message: 'JSX element \'Foo\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/castOfAwait.ts
../TypeScript/tests//cases/compiler/castOfAwait.ts: { index: 134,
lineNumber: 6,
column: 32,
message: 'JSX element \'number\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/castOfYield.ts
../TypeScript/tests//cases/compiler/castOfYield.ts: { index: 130,
lineNumber: 4,
column: 5,
message: 'JSX element \'number\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/castParentheses.ts
../TypeScript/tests//cases/compiler/castParentheses.ts: { index: 183,
lineNumber: 11,
column: 10,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/castTest.ts
../TypeScript/tests//cases/compiler/castTest.ts: { index: 136,
lineNumber: 10,
column: 13,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/catch.ts
../TypeScript/tests//cases/compiler/catchClauseWithInitializer1.ts
../TypeScript/tests//cases/compiler/catchClauseWithTypeAnnotation.ts
../TypeScript/tests//cases/compiler/cf.ts
../TypeScript/tests//cases/compiler/chainedAssignment1.ts
../TypeScript/tests//cases/compiler/chainedAssignment2.ts
../TypeScript/tests//cases/compiler/chainedAssignment3.ts
../TypeScript/tests//cases/compiler/chainedAssignmentChecking.ts
../TypeScript/tests//cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.ts
../TypeScript/tests//cases/compiler/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter2.ts
../TypeScript/tests//cases/compiler/chainedImportAlias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,7 @@
export function foo() {
}
-}
+} // @Filename: chainedImportAlias_file1.ts
-
-import // @Filename: chainedImportAlias_file1.ts
-x = require("./chainedImportAlias_file0");
+import x = require("./chainedImportAlias_file0");
import y = x;
y.m.foo();
../TypeScript/tests//cases/compiler/chainedSpecializationToObjectTypeLiteral.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -71,13 +71,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -204,13 +195,4 @@
"name": "groupBy"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "K"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,10 +1,12 @@
interface Sequence<T> {
- each(iterator: (value: T) => void): void;
- map<U>(iterator: (value: T) => U): Sequence<U>;
- filter(iterator: (value: T) => boolean): Sequence<T>;
- groupBy<K>(keySelector: (value: T) => K): Sequence<{ key: K; items: T[]; }>;
+ each(iterator: (value: T) => void): void,
+ map(iterator: (value: T) => U): Sequence<U>,
+ filter(iterator: (value: T) => boolean): Sequence<T>,
+ groupBy(keySelector: (value: T) => K): Sequence<{ key: K, items: T[] }>
}
var s: Sequence<string>;
var s2 = s.groupBy(s => s.length);
-var s3 = s2.each(x => { x.key /* Type is K, should be number */ });
+var s3 = s2.each(x => {
+ x.key; /* Type is K, should be number */
+});
../TypeScript/tests//cases/compiler/checkForObjectTooStrict.ts
../TypeScript/tests//cases/compiler/checkInfiniteExpansionTermination.ts
../TypeScript/tests//cases/compiler/checkInfiniteExpansionTermination.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
../TypeScript/tests//cases/compiler/checkInfiniteExpansionTermination2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -74,14 +74,5 @@
"type": "Identifier",
"name": "IObservable"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -3,14 +3,14 @@
interface IObservable<T> {
- n: IObservable<T[]>;
+ n: IObservable<T[]>
}
-interface ISubject<T> extends IObservable<T> { }
+interface ISubject<T> extends IObservable {}
-declare function combineLatest<TOther>(x: IObservable<TOther>[]): void;
-declare function combineLatest(): void;
+declare function combineLatest<TOther>(x: IObservable<TOther>[]): void
+declare function combineLatest(): void
function fn<T>() {
- var values: ISubject<any>[] = [];
- // Hang when using <T>, but not <any>
- combineLatest<T>(values);
+ var values: ISubject<any>[] = [];
+ // Hang when using <T>, but not <any>
+ combineLatest<T>(values);
}
../TypeScript/tests//cases/compiler/checkInterfaceBases.ts
../TypeScript/tests//cases/compiler/checkJsFiles.ts
../TypeScript/tests//cases/compiler/checkJsFiles2.ts
../TypeScript/tests//cases/compiler/checkJsFiles3.ts
../TypeScript/tests//cases/compiler/checkJsFiles4.ts
../TypeScript/tests//cases/compiler/checkJsFiles5.ts
../TypeScript/tests//cases/compiler/checkJsFiles6.ts
../TypeScript/tests//cases/compiler/checkJsFiles_noErrorLocation.ts
../TypeScript/tests//cases/compiler/checkJsFiles_skipDiagnostics.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing1.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing2.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing3.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing4.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing5.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing6.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing7.ts
../TypeScript/tests//cases/compiler/checkSuperCallBeforeThisAccessing8.ts
../TypeScript/tests//cases/compiler/checkSwitchStatementIfCaseTypeIsString.ts
../TypeScript/tests//cases/compiler/circularInferredTypeOfVariable.ts
../TypeScript/tests//cases/compiler/circularModuleImports.ts
../TypeScript/tests//cases/compiler/circularObjectLiteralAccessors.ts
../TypeScript/tests//cases/compiler/circularReferenceInImport.ts
../TypeScript/tests//cases/compiler/circularTypeofWithFunctionModule.ts
../TypeScript/tests//cases/compiler/class2.ts
../TypeScript/tests//cases/compiler/class2.ts: { index: 28,
lineNumber: 1,
column: 28,
message: 'Declaration or statement expected.' }
../TypeScript/tests//cases/compiler/classBlockScoping.ts
../TypeScript/tests//cases/compiler/classCannotExtendVar.ts
../TypeScript/tests//cases/compiler/classdecl.ts
../TypeScript/tests//cases/compiler/ClassDeclaration10.ts
../TypeScript/tests//cases/compiler/ClassDeclaration11.ts
../TypeScript/tests//cases/compiler/ClassDeclaration13.ts
../TypeScript/tests//cases/compiler/ClassDeclaration14.ts
../TypeScript/tests//cases/compiler/ClassDeclaration15.ts
../TypeScript/tests//cases/compiler/ClassDeclaration21.ts
../TypeScript/tests//cases/compiler/ClassDeclaration22.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,6 +14,6 @@
"type": "MethodDefinition",
"key": {
- "type": "Literal",
- "value": "foo"
+ "type": "Identifier",
+ "name": "foo"
},
"value": {
@@ -35,6 +35,6 @@
"type": "MethodDefinition",
"key": {
- "type": "Literal",
- "value": "bar"
+ "type": "Identifier",
+ "name": "bar"
},
"value": {
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
class C {
- "foo"();
- "bar"() { }
-}
\ No newline at end of file
+ foo();
+ bar() {}
+}
../TypeScript/tests//cases/compiler/ClassDeclaration24.ts
../TypeScript/tests//cases/compiler/ClassDeclaration25.ts
../TypeScript/tests//cases/compiler/ClassDeclaration26.ts
../TypeScript/tests//cases/compiler/ClassDeclaration26.ts: { index: 32,
lineNumber: 2,
column: 21,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/ClassDeclaration8.ts
../TypeScript/tests//cases/compiler/ClassDeclaration9.ts
../TypeScript/tests//cases/compiler/classDeclarationBlockScoping1.ts
../TypeScript/tests//cases/compiler/classDeclarationBlockScoping2.ts
../TypeScript/tests//cases/compiler/classDeclarationCheckUsedBeforeDefinitionInFunctionDeclaration.ts
../TypeScript/tests//cases/compiler/classDeclarationCheckUsedBeforeDefinitionInItself.ts
../TypeScript/tests//cases/compiler/classDeclarationMergedInModuleWithContinuation.ts
../TypeScript/tests//cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration.ts
../TypeScript/tests//cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts
../TypeScript/tests//cases/compiler/classDeclaredBeforeClassFactory.ts
../TypeScript/tests//cases/compiler/classExpressionExtendingAbstractClass.ts
../TypeScript/tests//cases/compiler/classExpressions.ts
../TypeScript/tests//cases/compiler/classExpressionTest1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -202,17 +202,5 @@
"computed": false
},
- "arguments": [],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ "arguments": []
}
}
Index:
===================================================================
---
+++
@@ -1,12 +1,12 @@
function M() {
- class C<X> {
- f<T>() {
- var t: T;
- var x: X;
- return { t, x };
- }
+ class C<X> {
+ f<T>() {
+ var t: T;
+ var x: X;
+ return { t, x };
\ No newline at end of file
}
+ }
- var v = new C<number>();
- return v.f<string>();
-}
+ var v = new C<number>();
+ return v.f();
+}
../TypeScript/tests//cases/compiler/classExpressionTest2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -215,17 +215,5 @@
"computed": false
},
- "arguments": [],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ "arguments": []
}
}
Index:
===================================================================
---
+++
@@ -1,12 +1,12 @@
function M() {
- var m = class C<X> {
- f<T>() {
- var t: T;
- var x: X;
- return { t, x };
- }
+ var m = class C<X> {
+ f<T>() {
+ var t: T;
+ var x: X;
+ return { t, x };
\ No newline at end of file
}
+ };
- var v = new m<number>();
- return v.f<string>();
-}
+ var v = new m<number>();
+ return v.f();
+}
../TypeScript/tests//cases/compiler/classExpressionWithDecorator1.ts
../TypeScript/tests//cases/compiler/classExpressionWithDecorator1.ts: { index: 42,
lineNumber: 2,
column: 8,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/classExpressionWithResolutionOfNamespaceOfSameName01.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticProperties1.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticProperties2.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticProperties3.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticPropertiesES61.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticPropertiesES62.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticPropertiesES63.ts
../TypeScript/tests//cases/compiler/classExpressionWithStaticPropertiesES64.ts
../TypeScript/tests//cases/compiler/classExtendingQualifiedName.ts
../TypeScript/tests//cases/compiler/classExtendingQualifiedName2.ts
../TypeScript/tests//cases/compiler/classExtendsAcrossFiles.ts
../TypeScript/tests//cases/compiler/classExtendsClauseClassMergedWithModuleNotReferingConstructor.ts
../TypeScript/tests//cases/compiler/classExtendsClauseClassNotReferringConstructor.ts
../TypeScript/tests//cases/compiler/classExtendsInterface.ts
../TypeScript/tests//cases/compiler/classExtendsInterfaceInExpression.ts
../TypeScript/tests//cases/compiler/classExtendsInterfaceInModule.ts
../TypeScript/tests//cases/compiler/classExtendsInterfaceThatExtendsClassWithPrivates1.ts
../TypeScript/tests//cases/compiler/classExtendsMultipleBaseClasses.ts
../TypeScript/tests//cases/compiler/classExtendsNull.ts
../TypeScript/tests//cases/compiler/classHeritageWithTrailingSeparator.ts
../TypeScript/tests//cases/compiler/classImplementingInterfaceIndexer.ts
../TypeScript/tests//cases/compiler/classImplementsClass1.ts
../TypeScript/tests//cases/compiler/classImplementsClass2.ts
../TypeScript/tests//cases/compiler/classImplementsClass3.ts
../TypeScript/tests//cases/compiler/classImplementsClass4.ts
../TypeScript/tests//cases/compiler/classImplementsClass5.ts
../TypeScript/tests//cases/compiler/classImplementsClass6.ts
../TypeScript/tests//cases/compiler/classImplementsImportedInterface.ts
../TypeScript/tests//cases/compiler/classIndexer.ts
../TypeScript/tests//cases/compiler/classIndexer2.ts
../TypeScript/tests//cases/compiler/classIndexer3.ts
../TypeScript/tests//cases/compiler/classIndexer4.ts
../TypeScript/tests//cases/compiler/classInheritence.ts
../TypeScript/tests//cases/compiler/classMemberInitializerScoping.ts
../TypeScript/tests//cases/compiler/classMemberInitializerWithLamdaScoping.ts
../TypeScript/tests//cases/compiler/classMemberInitializerWithLamdaScoping2.ts
../TypeScript/tests//cases/compiler/classMemberInitializerWithLamdaScoping3.ts
../TypeScript/tests//cases/compiler/classMemberInitializerWithLamdaScoping4.ts
../TypeScript/tests//cases/compiler/classMemberInitializerWithLamdaScoping5.ts
../TypeScript/tests//cases/compiler/classMemberWithMissingIdentifier.ts
../TypeScript/tests//cases/compiler/classMemberWithMissingIdentifier.ts: { index: 22,
lineNumber: 2,
column: 10,
message: 'Declaration expected.' }
../TypeScript/tests//cases/compiler/classMemberWithMissingIdentifier2.ts
../TypeScript/tests//cases/compiler/classMemberWithMissingIdentifier2.ts: { index: 22,
lineNumber: 2,
column: 10,
message: 'Declaration expected.' }
../TypeScript/tests//cases/compiler/classMethodWithKeywordName1.ts
../TypeScript/tests//cases/compiler/classOrder1.ts
../TypeScript/tests//cases/compiler/classOrder2.ts
../TypeScript/tests//cases/compiler/classOrderBug.ts
../TypeScript/tests//cases/compiler/classOverloadForFunction.ts
../TypeScript/tests//cases/compiler/classOverloadForFunction2.ts
../TypeScript/tests//cases/compiler/classSideInheritance1.ts
../TypeScript/tests//cases/compiler/classSideInheritance2.ts
../TypeScript/tests//cases/compiler/classSideInheritance3.ts
../TypeScript/tests//cases/compiler/classStaticPropertyTypeGuard.ts
../TypeScript/tests//cases/compiler/classTypeParametersInStatics.ts
../TypeScript/tests//cases/compiler/classUpdateTests.ts
../TypeScript/tests//cases/compiler/classUpdateTests.ts: { index: 1344,
lineNumber: 93,
column: 2,
message: 'Declaration or statement expected.' }
../TypeScript/tests//cases/compiler/classWithDuplicateIdentifier.ts
../TypeScript/tests//cases/compiler/classWithEmptyTypeParameter.ts
../TypeScript/tests//cases/compiler/classWithMultipleBaseClasses.ts
../TypeScript/tests//cases/compiler/classWithOverloadImplementationOfWrongName.ts
../TypeScript/tests//cases/compiler/classWithOverloadImplementationOfWrongName2.ts
../TypeScript/tests//cases/compiler/clinterfaces.ts
../TypeScript/tests//cases/compiler/cloduleAcrossModuleDefinitions.ts
../TypeScript/tests//cases/compiler/cloduleAndTypeParameters.ts
../TypeScript/tests//cases/compiler/clodulesDerivedClasses.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -42,52 +42,57 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Utils"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "convert"
- },
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "Literal",
- "value": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Utils"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "convert"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ReturnStatement",
+ "argument": {
+ "type": "Literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ "returnType": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "Shape"
+ }
}
}
- ]
- },
- "returnType": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "Shape"
- }
- }
+ },
+ "specifiers": [],
+ "source": null
}
- },
- "specifiers": [],
- "source": null
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -135,52 +140,57 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Utils"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "convert2"
- },
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ReturnStatement",
- "argument": {
- "type": "Literal",
- "value": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Utils"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "convert2"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ReturnStatement",
+ "argument": {
+ "type": "Literal",
+ "value": null
+ }
+ }
+ ]
+ },
+ "returnType": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "Path"
+ }
}
}
- ]
- },
- "returnType": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "Path"
- }
- }
+ },
+ "specifiers": [],
+ "source": null
}
- },
- "specifiers": [],
- "source": null
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,21 +1,25 @@
class Shape {
- id: number;
+ id: number;
}
-module Shape.Utils {
- export function convert(): Shape { return null;}
+module Shape {
+ module Utils {
+
+ export function convert(): Shape {
+ return null;
+ }
+ }
}
class Path extends Shape {
- name: string;
-
+ name: string;
}
-module Path.Utils {
+module Path {
+ module Utils {
+
export function convert2(): Path {
- return null;
+ return null;
}
+ }
}
-
-
-
../TypeScript/tests//cases/compiler/cloduleSplitAcrossFiles.ts
../TypeScript/tests//cases/compiler/cloduleStaticMembers.ts
../TypeScript/tests//cases/compiler/cloduleTest1.ts
../TypeScript/tests//cases/compiler/cloduleTest2.ts
../TypeScript/tests//cases/compiler/cloduleWithDuplicateMember1.ts
../TypeScript/tests//cases/compiler/cloduleWithDuplicateMember2.ts
../TypeScript/tests//cases/compiler/cloduleWithPriorInstantiatedModule.ts
../TypeScript/tests//cases/compiler/cloduleWithPriorUninstantiatedModule.ts
../TypeScript/tests//cases/compiler/cloduleWithRecursiveReference.ts
../TypeScript/tests//cases/compiler/collisionArgumentsArrowFunctions.ts
../TypeScript/tests//cases/compiler/collisionArgumentsClassConstructor.ts
../TypeScript/tests//cases/compiler/collisionArgumentsClassConstructor.ts: Error: did not recognize object of type "TSParameterProperty"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
../TypeScript/tests//cases/compiler/collisionArgumentsClassMethod.ts
../TypeScript/tests//cases/compiler/collisionArgumentsFunction.ts
../TypeScript/tests//cases/compiler/collisionArgumentsFunctionExpressions.ts
../TypeScript/tests//cases/compiler/collisionArgumentsInterfaceMembers.ts
../TypeScript/tests//cases/compiler/collisionArgumentsInType.ts
../TypeScript/tests//cases/compiler/collisionCodeGenEnumWithEnumMemberConflict.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,8 +21,4 @@
"type": "Identifier",
"name": "Thing"
- },
- "initializer": {
- "type": "Identifier",
- "name": "Color"
}
}
Index:
===================================================================
---
+++
@@ -1,4 +1,1 @@
-enum Color {
- Color,
- Thing = Color
-}
\ No newline at end of file
+enum Color { Color, Thing }
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithConstructorChildren.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithEnumMemberConflict.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -30,8 +30,4 @@
"type": "Identifier",
"name": "m2"
- },
- "initializer": {
- "type": "Identifier",
- "name": "m1"
}
}
Index:
===================================================================
---
+++
@@ -1,6 +1,3 @@
module m1 {
- enum e {
- m1,
- m2 = m1
- }
-}
\ No newline at end of file
+ enum e { m1, m2 }
+}
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithMemberClassConflict.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithMemberInterfaceConflict.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithMemberVariable.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithMethodChildren.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithModuleChildren.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithModuleReopening.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithPrivateMember.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithUnicodeNames.ts
../TypeScript/tests//cases/compiler/collisionCodeGenModuleWithUnicodeNames.ts: { index: 0,
lineNumber: 1,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAlias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,9 @@
// @Filename: collisionExportsRequireAndAlias_file3333.ts
-export function bar2() {}
+export function bar2() {} // @Filename: collisionExportsRequireAndAlias_file2.ts
-import // @Filename: collisionExportsRequireAndAlias_file2.ts
-require = require("collisionExportsRequireAndAlias_file1"); // Error
+import require = require("collisionExportsRequireAndAlias_file1"); // Error
+
import exports = require("collisionExportsRequireAndAlias_file3333"); // Error
export function foo() {
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientClass.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientEnum.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientFunction.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientFunction.ts: { index: 158,
lineNumber: 7,
column: 29,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientFunctionInGlobalFile.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientFunctionInGlobalFile.ts: { index: 124,
lineNumber: 4,
column: 31,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientModule.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndAmbientVar.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndClass.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndEnum.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndFunction.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndFunctionInGlobalFile.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndInternalModuleAlias.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndInternalModuleAliasInGlobalFile.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndModule.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndUninstantiatedModule.ts
../TypeScript/tests//cases/compiler/collisionExportsRequireAndVar.ts
../TypeScript/tests//cases/compiler/collisionRestParameterArrowFunctions.ts
../TypeScript/tests//cases/compiler/collisionRestParameterClassConstructor.ts
../TypeScript/tests//cases/compiler/collisionRestParameterClassConstructor.ts: Error: did not recognize object of type "TSParameterProperty"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
../TypeScript/tests//cases/compiler/collisionRestParameterClassMethod.ts
../TypeScript/tests//cases/compiler/collisionRestParameterFunction.ts
../TypeScript/tests//cases/compiler/collisionRestParameterFunctionExpressions.ts
../TypeScript/tests//cases/compiler/collisionRestParameterInterfaceMembers.ts
../TypeScript/tests//cases/compiler/collisionRestParameterInType.ts
../TypeScript/tests//cases/compiler/collisionRestParameterUnderscoreIUsage.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalFunctionInAccessors.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalFunctionInConstructor.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalFunctionInMethod.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalFunctionInProperty.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalVarInAccessors.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalVarInConstructor.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalVarInMethod.ts
../TypeScript/tests//cases/compiler/collisionSuperAndLocalVarInProperty.ts
../TypeScript/tests//cases/compiler/collisionSuperAndNameResolution.ts
../TypeScript/tests//cases/compiler/collisionSuperAndParameter.ts
../TypeScript/tests//cases/compiler/collisionSuperAndParameter1.ts
../TypeScript/tests//cases/compiler/collisionSuperAndPropertyNameAsConstuctorParameter.ts
../TypeScript/tests//cases/compiler/collisionSuperAndPropertyNameAsConstuctorParameter.ts: Error: did not recognize object of type "TSParameterProperty"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
../TypeScript/tests//cases/compiler/collisionThisExpressionAndAliasInGlobal.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,3 +4,4 @@
var f = () => this;
+
import _this = a; // Error
../TypeScript/tests//cases/compiler/collisionThisExpressionAndAmbientClassInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndAmbientVarInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndClassInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndEnumInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndFunctionInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInAccessors.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInConstructor.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInMethod.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarInProperty.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndLocalVarWithSuperExperssion.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndModuleInGlobal.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndNameResolution.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndParameter.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts
../TypeScript/tests//cases/compiler/collisionThisExpressionAndPropertyNameAsConstuctorParameter.ts: Error: did not recognize object of type "TSParameterProperty"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
../TypeScript/tests//cases/compiler/collisionThisExpressionAndVarInGlobal.ts
../TypeScript/tests//cases/compiler/commaOperator1.ts
../TypeScript/tests//cases/compiler/commaOperatorInConditionalExpression.ts
../TypeScript/tests//cases/compiler/commaOperatorLeftSideUnused.ts
../TypeScript/tests//cases/compiler/commentBeforeStaticMethod1.ts
../TypeScript/tests//cases/compiler/commentEmitAtEndOfFile1.ts
../TypeScript/tests//cases/compiler/commentEmitWithCommentOnLastLine.ts
../TypeScript/tests//cases/compiler/commentInEmptyParameterList1.ts
../TypeScript/tests//cases/compiler/commentInMethodCall.ts
../TypeScript/tests//cases/compiler/commentInNamespaceDeclarationWithIdentifierPathName.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,36 +9,46 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "hi"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "world"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "foo"
- },
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": []
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "hi"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "world"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "foo"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ }
+ }
+ ]
+ }
}
- }
- ]
+ ]
+ }
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,6 +1,10 @@
-namespace hello.hi.world
-{
- function foo() {}
+module hello {
- // TODO, blah
\ No newline at end of file
-}
+// TODO, blah
+ module hi {
+ module world {
+ function foo() {
+ }
+ }
+ }
+}
../TypeScript/tests//cases/compiler/commentLeadingCloseBrace.ts
../TypeScript/tests//cases/compiler/commentOnAmbientClass1.ts
../TypeScript/tests//cases/compiler/commentOnAmbientEnum.ts
../TypeScript/tests//cases/compiler/commentOnAmbientfunction.ts
../TypeScript/tests//cases/compiler/commentOnAmbientModule.ts
../TypeScript/tests//cases/compiler/commentOnAmbientVariable1.ts
../TypeScript/tests//cases/compiler/commentOnAmbientVariable2.ts
../TypeScript/tests//cases/compiler/commentOnArrayElement1.ts
../TypeScript/tests//cases/compiler/commentOnArrayElement2.ts
../TypeScript/tests//cases/compiler/commentOnArrayElement3.ts
../TypeScript/tests//cases/compiler/commentOnBlock1.ts
../TypeScript/tests//cases/compiler/commentOnClassAccessor1.ts
../TypeScript/tests//cases/compiler/commentOnClassAccessor2.ts
../TypeScript/tests//cases/compiler/commentOnClassMethod1.ts
../TypeScript/tests//cases/compiler/commentOnDecoratedClassDeclaration.ts
../TypeScript/tests//cases/compiler/commentOnDecoratedClassDeclaration.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/commentOnElidedModule1.ts
../TypeScript/tests//cases/compiler/commentOnExportEnumDeclaration.ts
../TypeScript/tests//cases/compiler/commentOnExpressionStatement1.ts
../TypeScript/tests//cases/compiler/commentOnIfStatement1.ts
../TypeScript/tests//cases/compiler/commentOnImportStatement1.ts
../TypeScript/tests//cases/compiler/commentOnImportStatement2.ts
../TypeScript/tests//cases/compiler/commentOnImportStatement3.ts
../TypeScript/tests//cases/compiler/commentOnInterface1.ts
../TypeScript/tests//cases/compiler/commentOnParameter1.ts
../TypeScript/tests//cases/compiler/commentOnParameter2.ts
../TypeScript/tests//cases/compiler/commentOnParameter3.ts
../TypeScript/tests//cases/compiler/commentOnParenthesizedExpressionOpenParen1.ts
../TypeScript/tests//cases/compiler/commentOnParenthesizedExpressionOpenParen1.ts: { index: 28,
lineNumber: 3,
column: 1,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/commentOnSignature1.ts
../TypeScript/tests//cases/compiler/commentOnSimpleArrowFunctionBody1.ts
../TypeScript/tests//cases/compiler/commentOnStaticMember1.ts
../TypeScript/tests//cases/compiler/commentsAfterFunctionExpression1.ts
../TypeScript/tests//cases/compiler/commentsArgumentsOfCallExpression1.ts
../TypeScript/tests//cases/compiler/commentsArgumentsOfCallExpression2.ts
../TypeScript/tests//cases/compiler/commentsAtEndOfFile1.ts
../TypeScript/tests//cases/compiler/commentsBeforeFunctionExpression1.ts
../TypeScript/tests//cases/compiler/commentsBeforeVariableStatement1.ts
../TypeScript/tests//cases/compiler/commentsClass.ts
../TypeScript/tests//cases/compiler/commentsClassMembers.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -48,5 +48,5 @@
static set s3(/** this is value*/ value: number) {
c1.s1 = c1.s2(value);
- } /*setter*/ /*trailing comment 2 */
+ } /*trailing comment 2 */ /*setter*/
public nc_p1: number;
public nc_p2(b: number) {
../TypeScript/tests//cases/compiler/commentsCommentParsing.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -38,18 +38,15 @@
/// Triple slash comment
/** jsdoc comment */ function jsDocMixedComments2() {}
-jsDocMixedComments2(); /*** another jsDocComment*/
+jsDocMixedComments2(); /*** another jsDocComment*/ /// Triple slash comment
-/** jsdoc comment */ /// Triple slash comment
-function jsDocMixedComments3() {}
-jsDocMixedComments3(); /*** another jsDocComment*/
+/** jsdoc comment */ function jsDocMixedComments3() {}
+jsDocMixedComments3(); /*** another jsDocComment*/ /// Triple slash comment
-/** jsdoc comment */ /// Triple slash comment
-/// Triple slash comment 2
+/** jsdoc comment */ /// Triple slash comment 2
function jsDocMixedComments4() {}
-jsDocMixedComments4(); /*** another jsDocComment*/
+jsDocMixedComments4(); /*** another jsDocComment*/ /// Triple slash comment
/// Triple slash comment 1
-/** jsdoc comment */ /// Triple slash comment
-/// Triple slash comment 2
+/** jsdoc comment */ /// Triple slash comment 2
function jsDocMixedComments5() {}
jsDocMixedComments5();
../TypeScript/tests//cases/compiler/commentsdoNotEmitComments.ts
../TypeScript/tests//cases/compiler/commentsdoNotEmitComments.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/commentsDottedModuleName.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,33 +14,38 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "InnerModule"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "b"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "InnerModule"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "b"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -5,7 +5,6 @@
/** this is multi declare module*/
-export module outerModule.InnerModule {
- /// class b comment
- export class b {
- }
-}
\ No newline at end of file
+export module outerModule {
+/// class b comment
+ module InnerModule { export class b {} }
+}
../TypeScript/tests//cases/compiler/commentsemitComments.ts
../TypeScript/tests//cases/compiler/commentsEnums.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,7 +4,6 @@
/** Enum of colors*/
-enum Colors /* blue */ { Cornflower, FancyPink }
+enum Colors /* blue */ { Cornflower, FancyPink } // trailing comment
/** Fancy name for 'blue'*/
-/** Fancy name for 'pink'*/ // trailing comment
-var x = Colors.Cornflower;
+/** Fancy name for 'pink'*/ var x = Colors.Cornflower;
x = Colors.FancyPink;
../TypeScript/tests//cases/compiler/commentsExternalModules.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -45,9 +45,8 @@
}
m4.fooExport();
-var myvar2 = new m4.m2.c();
+var myvar2 = new m4.m2.c(); // @Filename: commentsExternalModules_1.ts
-import // @Filename: commentsExternalModules_1.ts
-/**This is on import declaration*/
+import /**This is on import declaration*/
extMod = require("commentsExternalModules_0"); // trailing comment1
extMod.m1.fooExport();
../TypeScript/tests//cases/compiler/commentsExternalModules2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -45,9 +45,8 @@
}
m4.fooExport();
-var myvar2 = new m4.m2.c();
+var myvar2 = new m4.m2.c(); // @Filename: commentsExternalModules_1.ts
-import // @Filename: commentsExternalModules_1.ts
-/**This is on import declaration*/
+import /**This is on import declaration*/
extMod = require("commentsExternalModules2_0"); // trailing comment 1
extMod.m1.fooExport();
../TypeScript/tests//cases/compiler/commentsExternalModules3.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -45,9 +45,8 @@
}
m4.fooExport();
-var myvar2 = new m4.m2.c();
+var myvar2 = new m4.m2.c(); // @Filename: commentsExternalModules_1.ts
-import // @Filename: commentsExternalModules_1.ts
-/**This is on import declaration*/
+import /**This is on import declaration*/
extMod = require("./commentsExternalModules2_0"); // trailing comment 1
extMod.m1.fooExport();
../TypeScript/tests//cases/compiler/commentsFormatting.ts
../TypeScript/tests//cases/compiler/commentsFunction.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -40,5 +40,5 @@
function blah2(
- a: string /* single line multiple trailing comments */ /* second */
+ a: string /* second */ /* single line multiple trailing comments */
) {}
../TypeScript/tests//cases/compiler/commentsInheritance.ts
../TypeScript/tests//cases/compiler/commentsInterface.ts
../TypeScript/tests//cases/compiler/commentsInterface.ts: Error: Comment "*param help" was not printed. Please report this error!
at astComments.forEach.comment (/Users/despairblue/git/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/Users/despairblue/git/prettier/index.js:67:15)
at format (/Users/despairblue/git/prettier/index.js:85:3)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
at format (/Users/despairblue/git/prettier/bin/prettier.js:214:25)
at err (/Users/despairblue/git/prettier/bin/prettier.js:328:16)
at patterns.forEach.pattern (/Users/despairblue/git/prettier/bin/prettier.js:372:7)
at Array.forEach (native)
../TypeScript/tests//cases/compiler/commentsModules.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -285,33 +285,38 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m3"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "c"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m3"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -350,40 +355,50 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m4"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m5"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m4"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "c"
+ "name": "m5"
},
"body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -430,57 +445,67 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m5"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m6"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSModuleDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "m7"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m5"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m6"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
"type": "Identifier",
- "name": "c"
+ "name": "m7"
},
"body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
+ }
+ ]
+ }
}
- }
- ]
+ ]
+ }
}
- }
+ ]
}
},
@@ -535,57 +560,67 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m6"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m7"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSModuleDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "m8"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m6"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m7"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
"type": "Identifier",
- "name": "c"
+ "name": "m8"
},
"body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
+ }
+ ]
+ }
}
- }
- ]
+ ]
+ }
}
- }
+ ]
}
},
@@ -640,50 +675,55 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m7"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSModuleDeclaration",
- "modifiers": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m7"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "TSExportKeyword"
+ "type": "TSModuleDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "m8"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
}
- ],
- "name": {
- "type": "Identifier",
- "name": "m8"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "c"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
- }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -730,83 +770,88 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "m8"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSModuleDeclaration",
- "modifiers": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "m8"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "m9"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "c"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "m9"
},
- {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "d"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "e"
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "c"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
},
- "body": {
- "type": "ClassBody",
- "body": []
+ {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "d"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
},
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "e"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -3,98 +3,77 @@
// @removeComments: false
/** Module comment*/
-module m1 {
- /** b's comment*/
- export var b: number;
- /** foo's comment*/
- function foo() {
- return b;
- }
- /** m2 comments*/
- export module m2 {
- /** class comment;*/
- export class c {
- };
- /** i*/
- export var i = new c();
- }
- /** exported function*/
- export function fooExport() {
- return foo();
- }
+module m1 /**hm*/ {
+/** b's comment*/
+/** foo's comment*/
+/** m2 comments*/
+/** class comment;*/
+/** i*/
+/** exported function*/
- // shouldn't appear
- export function foo2Export(/**hm*/ a: string) {
- }
+// shouldn't appear
- /** foo3Export
+/** foo3Export
* comment
*/
- export function foo3Export() {
- }
- /** foo4Export
+/** foo4Export
* comment
*/
- function foo4Export() {
- }
+ export var b: number;function foo() {
+ return b;
+ }export module m2 {
+ export class c {}export var i = new c();
+ }
+ export function fooExport() {
+ return foo();
+ }
+ export function foo2Export(a: string) {
+ }
+ export function foo3Export() {
+ }function foo4Export() {
+ }
} // trailing comment module
m1.fooExport();
var myvar = new m1.m2.c();
/** module comment of m2.m3*/
-module m2.m3 {
- /** Exported class comment*/
- export class c {
- }
+module m2 {
+/** Exported class comment*/
+ module m3 { export class c {} }
} /* trailing dotted module comment*/
new m2.m3.c();
/** module comment of m3.m4.m5*/
-module m3.m4.m5 {
- /** Exported class comment*/
- export class c {
- }
+module m3 {
+/** Exported class comment*/
+ module m4 { module m5 { export class c {} } }
} // trailing dotted module 2
new m3.m4.m5.c();
/** module comment of m4.m5.m6*/
-module m4.m5.m6 {
- export module m7 {
- /** Exported class comment*/
- export class c {
- }
- } /* trailing inner module */ /* multiple comments*/
+module m4 /* trailing inner module */ /* multiple comments*/ {
+/** Exported class comment*/
+ module m5 { module m6 { export module m7 { export class c {} } } }
}
new m4.m5.m6.m7.c();
/** module comment of m5.m6.m7*/
-module m5.m6.m7 {
- /** module m8 comment*/
\ No newline at end of file
- export module m8 {
- /** Exported class comment*/
- export class c {
- }
- }
+module m5 {
+/** module m8 comment*/
+/** Exported class comment*/
+ module m6 { module m7 { export module m8 { export class c {} } } }
}
new m5.m6.m7.m8.c();
-module m6.m7 {
- export module m8 {
- /** Exported class comment*/
- export class c {
- }
- }
+module m6 {
+/** Exported class comment*/
+ module m7 { export module m8 { export class c {} } }
}
new m6.m7.m8.c();
-module m7.m8 {
- /** module m9 comment*/
- export module m9 {
- /** Exported class comment*/
- export class c {
- }
+module m7 {
+/** module m9 comment*/
+/** Exported class comment*/
- /** class d */
- class d {
- }
+/** class d */
- // class e
- export class e {
- }
- }
+// class e
+ module m8 {
+ export module m9 { export class c {}class d {}export class e {} }
+ }
}
-new m7.m8.m9.c();
+new m7.m8.m9.c();
../TypeScript/tests//cases/compiler/commentsMultiModuleMultiFile.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -19,9 +19,7 @@
new multiM.b();
-new multiM.c();
+new multiM.c(); // @Filename: commentsMultiModuleMultiFile_1.ts
-
-import // @Filename: commentsMultiModuleMultiFile_1.ts
-m = require("commentsMultiModuleMultiFile_0");
+import m = require("commentsMultiModuleMultiFile_0");
/** this is multi module 3 comment*/
export module multiM {
../TypeScript/tests//cases/compiler/commentsMultiModuleSingleFile.ts
../TypeScript/tests//cases/compiler/commentsOnObjectLiteral1.ts
../TypeScript/tests//cases/compiler/commentsOnObjectLiteral2.ts
../TypeScript/tests//cases/compiler/commentsOnObjectLiteral3.ts
../TypeScript/tests//cases/compiler/commentsOnObjectLiteral4.ts
../TypeScript/tests//cases/compiler/commentsOnPropertyOfObjectLiteral1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,8 +3,8 @@
id1: /* c1 */ "hello",
id2: /*! @ngInject */ (details: any) => details.id,
- id3: /*! @ngInject */
- (details: any) => details.id,
- id4: /*! @ngInject */
- /* C2 */
+ /*! @ngInject */
+ id3: (details: any) => details.id,
+ /*! @ngInject */
+ id4: /* C2 */
(details: any) => details.id
};
../TypeScript/tests//cases/compiler/commentsOnRequireStatement.ts
../TypeScript/tests//cases/compiler/commentsOnReturnStatement1.ts
../TypeScript/tests//cases/compiler/commentsOnStaticMembers.ts
../TypeScript/tests//cases/compiler/commentsOverloads.ts
../TypeScript/tests//cases/compiler/commentsPropertySignature1.ts
../TypeScript/tests//cases/compiler/commentsTypeParameters.ts
../TypeScript/tests//cases/compiler/commentsTypeParameters.ts: Error: Comment "*type" was not printed. Please report this error!
at astComments.forEach.comment (/Users/despairblue/git/prettier/index.js:69:13)
at Array.forEach (native)
at ensureAllCommentsPrinted (/Users/despairblue/git/prettier/index.js:67:15)
at format (/Users/despairblue/git/prettier/index.js:85:3)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
at format (/Users/despairblue/git/prettier/bin/prettier.js:214:25)
at err (/Users/despairblue/git/prettier/bin/prettier.js:328:16)
at patterns.forEach.pattern (/Users/despairblue/git/prettier/bin/prettier.js:372:7)
at Array.forEach (native)
../TypeScript/tests//cases/compiler/commentsVarDecl.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -14,5 +14,5 @@
/** this is multiline comment
* All these variables are of number type */
-var anotherAnotherVariable = 70; /* multiple trailing comments */ /* these are multiple trailing comments */
+var anotherAnotherVariable = 70; /* these are multiple trailing comments */ /* multiple trailing comments */
/** Triple slash multiline comment*/
../TypeScript/tests//cases/compiler/commentsVariableStatement1.ts
../TypeScript/tests//cases/compiler/commonjsSafeImport.ts
../TypeScript/tests//cases/compiler/commonSourceDir1.ts
../TypeScript/tests//cases/compiler/commonSourceDir2.ts
../TypeScript/tests//cases/compiler/commonSourceDir3.ts
../TypeScript/tests//cases/compiler/commonSourceDir4.ts
../TypeScript/tests//cases/compiler/commonSourceDir5.ts
../TypeScript/tests//cases/compiler/commonSourceDir6.ts
../TypeScript/tests//cases/compiler/commonSourceDirectory.ts
../TypeScript/tests//cases/compiler/commonSourceDirectory.ts: { index: 540,
lineNumber: 22,
column: 21,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/commonSourceDirectory_dts.ts
../TypeScript/tests//cases/compiler/commonSourceDirectory_dts.ts: { index: 415,
lineNumber: 15,
column: 21,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/compilerOptionsDeclarationAndNoEmit.ts
../TypeScript/tests//cases/compiler/compilerOptionsOutAndNoEmit.ts
../TypeScript/tests//cases/compiler/compilerOptionsOutDirAndNoEmit.ts
../TypeScript/tests//cases/compiler/compilerOptionsOutFileAndNoEmit.ts
../TypeScript/tests//cases/compiler/complexClassRelationships.ts
../TypeScript/tests//cases/compiler/complexNarrowingWithAny.ts
../TypeScript/tests//cases/compiler/complicatedGenericRecursiveBaseClassReference.ts
../TypeScript/tests//cases/compiler/complicatedPrivacy.ts
../TypeScript/tests//cases/compiler/compositeGenericFunction.ts
../TypeScript/tests//cases/compiler/compoundVarDecl1.ts
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring1.ts
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring1.ts: { index: 173,
lineNumber: 8,
column: 10,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring1_ES6.ts
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring1_ES6.ts: { index: 227,
lineNumber: 10,
column: 10,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring2.ts
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring2.ts: { index: 35,
lineNumber: 2,
column: 10,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring2_ES6.ts
../TypeScript/tests//cases/compiler/computedPropertiesInDestructuring2_ES6.ts: { index: 54,
lineNumber: 4,
column: 10,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/concatClassAndString.ts
../TypeScript/tests//cases/compiler/concatError.ts
../TypeScript/tests//cases/compiler/concatTuples.ts
../TypeScript/tests//cases/compiler/conditionalExpression1.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine1.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine10.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine2.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine3.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine4.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine5.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine6.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine7.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine8.ts
../TypeScript/tests//cases/compiler/conditionalExpressionNewLine9.ts
../TypeScript/tests//cases/compiler/conditionalExpressions2.ts
../TypeScript/tests//cases/compiler/conditionallyDuplicateOverloadsCausedByOverloadResolution.ts
../TypeScript/tests//cases/compiler/conflictingMemberTypesInBases.ts
../TypeScript/tests//cases/compiler/conflictingTypeAnnotatedVar.ts
../TypeScript/tests//cases/compiler/conflictMarkerTrivia1.ts
../TypeScript/tests//cases/compiler/conflictMarkerTrivia1.ts: { index: 11,
lineNumber: 2,
column: 0,
message: 'Merge conflict marker encountered.' }
../TypeScript/tests//cases/compiler/conflictMarkerTrivia2.ts
../TypeScript/tests//cases/compiler/conflictMarkerTrivia2.ts: { index: 22,
lineNumber: 3,
column: 0,
message: 'Merge conflict marker encountered.' }
../TypeScript/tests//cases/compiler/conflictMarkerTrivia4.ts
../TypeScript/tests//cases/compiler/conflictMarkerTrivia4.ts: { index: 18,
lineNumber: 2,
column: 0,
message: 'Merge conflict marker encountered.' }
../TypeScript/tests//cases/compiler/constantOverloadFunction.ts
../TypeScript/tests//cases/compiler/constantOverloadFunctionNoSubtypeError.ts
../TypeScript/tests//cases/compiler/constDeclarations-access.ts
../TypeScript/tests//cases/compiler/constDeclarations-access2.ts
../TypeScript/tests//cases/compiler/constDeclarations-access3.ts
../TypeScript/tests//cases/compiler/constDeclarations-access4.ts
../TypeScript/tests//cases/compiler/constDeclarations-access5.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,8 @@
// @Filename: constDeclarations_access_1.ts
-export const x = 0;
+export const x = 0; // @Filename: constDeclarations_access_2.ts
-import // @Filename: constDeclarations_access_2.ts
-///<reference path='constDeclarations_access_1.ts'/>
+import ///<reference path='constDeclarations_access_1.ts'/>
m = require("constDeclarations_access_1");
// Errors
../TypeScript/tests//cases/compiler/constDeclarations-ambient-errors.ts
../TypeScript/tests//cases/compiler/constDeclarations-ambient.ts
../TypeScript/tests//cases/compiler/constDeclarations-errors.ts
../TypeScript/tests//cases/compiler/constDeclarations-es5.ts
../TypeScript/tests//cases/compiler/constDeclarations-invalidContexts.ts
../TypeScript/tests//cases/compiler/constDeclarations-scopes.ts
../TypeScript/tests//cases/compiler/constDeclarations-scopes2.ts
../TypeScript/tests//cases/compiler/constDeclarations-useBeforeDefinition.ts
../TypeScript/tests//cases/compiler/constDeclarations-useBeforeDefinition2.ts
../TypeScript/tests//cases/compiler/constDeclarations-validContexts.ts
../TypeScript/tests//cases/compiler/constDeclarations.ts
../TypeScript/tests//cases/compiler/constDeclarations2.ts
../TypeScript/tests//cases/compiler/constDeclarationShadowedByVarDeclaration.ts
../TypeScript/tests//cases/compiler/constDeclarationShadowedByVarDeclaration2.ts
../TypeScript/tests//cases/compiler/constDeclarationShadowedByVarDeclaration3.ts
../TypeScript/tests//cases/compiler/constEnumBadPropertyNames.ts
../TypeScript/tests//cases/compiler/constEnumBadPropertyNames.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumDeclarations.ts
../TypeScript/tests//cases/compiler/constEnumDeclarations.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumErrors.ts
../TypeScript/tests//cases/compiler/constEnumErrors.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumExternalModule.ts
../TypeScript/tests//cases/compiler/constEnumExternalModule.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumMergingWithValues1.ts
../TypeScript/tests//cases/compiler/constEnumMergingWithValues1.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumMergingWithValues2.ts
../TypeScript/tests//cases/compiler/constEnumMergingWithValues2.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumMergingWithValues3.ts
../TypeScript/tests//cases/compiler/constEnumMergingWithValues3.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumMergingWithValues4.ts
../TypeScript/tests//cases/compiler/constEnumMergingWithValues4.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumMergingWithValues5.ts
../TypeScript/tests//cases/compiler/constEnumMergingWithValues5.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumOnlyModuleMerging.ts
../TypeScript/tests//cases/compiler/constEnumOnlyModuleMerging.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnums.ts
../TypeScript/tests//cases/compiler/constEnums.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumToStringNoComments.ts
../TypeScript/tests//cases/compiler/constEnumToStringNoComments.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constEnumToStringWithComments.ts
../TypeScript/tests//cases/compiler/constEnumToStringWithComments.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constIndexedAccess.ts
../TypeScript/tests//cases/compiler/constIndexedAccess.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/constraintCheckInGenericBaseTypeReference.ts
../TypeScript/tests//cases/compiler/constraintErrors1.ts
../TypeScript/tests//cases/compiler/constraintPropagationThroughReturnTypes.ts
../TypeScript/tests//cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts
../TypeScript/tests//cases/compiler/constraintReferencingTypeParameterFromSameTypeParameterList.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
../TypeScript/tests//cases/compiler/constraints0.ts
../TypeScript/tests//cases/compiler/constraints0.ts: { index: 72,
lineNumber: 9,
column: 14,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/constraintsThatReferenceOtherContstraints1.ts
../TypeScript/tests//cases/compiler/constraintsUsedInPrototypeProperty.ts
../TypeScript/tests//cases/compiler/constructorArgs.ts
../TypeScript/tests//cases/compiler/constructorArgsErrors1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -22,15 +22,10 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "a",
+ "type": "Identifier",
+ "name": "a",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
+ "type": "TSNumberKeyword"
}
},
Index:
===================================================================
---
+++
@@ -1,4 +1,3 @@
class foo {
- constructor (static a: number) {
- }
-}
\ No newline at end of file
+ constructor(a: number) {}
+}
../TypeScript/tests//cases/compiler/constructorArgsErrors2.ts
../TypeScript/tests//cases/compiler/constructorArgsErrors3.ts
../TypeScript/tests//cases/compiler/constructorArgsErrors4.ts
../TypeScript/tests//cases/compiler/constructorArgsErrors5.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -22,15 +22,10 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "a",
+ "type": "Identifier",
+ "name": "a",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
+ "type": "TSNumberKeyword"
}
},
Index:
===================================================================
---
+++
@@ -1,4 +1,3 @@
class foo {
- constructor (export a: number) {
- }
+ constructor(a: number) {}
}
../TypeScript/tests//cases/compiler/constructorArgWithGenericCallSignature.ts
../TypeScript/tests//cases/compiler/constructorAsType.ts
../TypeScript/tests//cases/compiler/constructorInvocationWithTooFewTypeArgs.ts
../TypeScript/tests//cases/compiler/constructorOverloads1.ts
../TypeScript/tests//cases/compiler/constructorOverloads2.ts
../TypeScript/tests//cases/compiler/constructorOverloads3.ts
../TypeScript/tests//cases/compiler/constructorOverloads4.ts
../TypeScript/tests//cases/compiler/constructorOverloads5.ts
../TypeScript/tests//cases/compiler/constructorOverloads6.ts
../TypeScript/tests//cases/compiler/constructorOverloads7.ts
../TypeScript/tests//cases/compiler/constructorOverloads8.ts
../TypeScript/tests//cases/compiler/constructorParametersInVariableDeclarations.ts
../TypeScript/tests//cases/compiler/constructorParametersThatShadowExternalNamesInVariableDeclarations.ts
../TypeScript/tests//cases/compiler/constructorReturningAPrimitive.ts
../TypeScript/tests//cases/compiler/constructorReturnsInvalidType.ts
../TypeScript/tests//cases/compiler/constructorStaticParamName.ts
../TypeScript/tests//cases/compiler/constructorStaticParamNameErrors.ts
../TypeScript/tests//cases/compiler/constructorsWithSpecializedSignatures.ts
../TypeScript/tests//cases/compiler/constructorTypeWithTypeParameters.ts
../TypeScript/tests//cases/compiler/constructorWithCapturedSuper.ts
../TypeScript/tests//cases/compiler/constructorWithIncompleteTypeAnnotation.ts
../TypeScript/tests//cases/compiler/constructorWithIncompleteTypeAnnotation.ts: { index: 262,
lineNumber: 13,
column: 18,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/contextuallyTypingOrOperator.ts
../TypeScript/tests//cases/compiler/contextuallyTypingOrOperator2.ts
../TypeScript/tests//cases/compiler/contextuallyTypingOrOperator3.ts
../TypeScript/tests//cases/compiler/contextuallyTypingRestParameters.ts
../TypeScript/tests//cases/compiler/contextualSigInstantiationRestParams.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstantiation1.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstantiation1.ts: { index: 235,
lineNumber: 5,
column: 34,
message: '\'...\' expected.' }
../TypeScript/tests//cases/compiler/contextualSignatureInstantiation2.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstantiation2.ts: { index: 189,
lineNumber: 4,
column: 9,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/contextualSignatureInstantiation3.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstantiationWithTypeParameterConstrainedToOuterTypeParameter.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstatiationContravariance.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstatiationContravariance.ts: { index: 115,
lineNumber: 5,
column: 11,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/contextualSignatureInstatiationCovariance.ts
../TypeScript/tests//cases/compiler/contextualSignatureInstatiationCovariance.ts: { index: 112,
lineNumber: 5,
column: 11,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/contextualTypeAny.ts
../TypeScript/tests//cases/compiler/contextualTypeAppliedToVarArgs.ts
../TypeScript/tests//cases/compiler/contextualTypeArrayReturnType.ts
../TypeScript/tests//cases/compiler/contextualTypeObjectSpreadExpression.ts
../TypeScript/tests//cases/compiler/contextualTyping.ts
../TypeScript/tests//cases/compiler/contextualTyping.ts: { index: 618,
lineNumber: 31,
column: 5,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/contextualTyping1.ts
../TypeScript/tests//cases/compiler/contextualTyping10.ts
../TypeScript/tests//cases/compiler/contextualTyping11.ts
../TypeScript/tests//cases/compiler/contextualTyping11.ts: { index: 42,
lineNumber: 1,
column: 42,
message: 'JSX element \'foo\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/contextualTyping12.ts
../TypeScript/tests//cases/compiler/contextualTyping13.ts
../TypeScript/tests//cases/compiler/contextualTyping14.ts
../TypeScript/tests//cases/compiler/contextualTyping15.ts
../TypeScript/tests//cases/compiler/contextualTyping16.ts
../TypeScript/tests//cases/compiler/contextualTyping17.ts
../TypeScript/tests//cases/compiler/contextualTyping18.ts
../TypeScript/tests//cases/compiler/contextualTyping18.ts: { index: 24,
lineNumber: 1,
column: 24,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping19.ts
../TypeScript/tests//cases/compiler/contextualTyping2.ts
../TypeScript/tests//cases/compiler/contextualTyping20.ts
../TypeScript/tests//cases/compiler/contextualTyping21.ts
../TypeScript/tests//cases/compiler/contextualTyping22.ts
../TypeScript/tests//cases/compiler/contextualTyping23.ts
../TypeScript/tests//cases/compiler/contextualTyping24.ts
../TypeScript/tests//cases/compiler/contextualTyping25.ts
../TypeScript/tests//cases/compiler/contextualTyping25.ts: { index: 40,
lineNumber: 1,
column: 40,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping26.ts
../TypeScript/tests//cases/compiler/contextualTyping26.ts: { index: 40,
lineNumber: 1,
column: 40,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping27.ts
../TypeScript/tests//cases/compiler/contextualTyping27.ts: { index: 40,
lineNumber: 1,
column: 40,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping28.ts
../TypeScript/tests//cases/compiler/contextualTyping29.ts
../TypeScript/tests//cases/compiler/contextualTyping3.ts
../TypeScript/tests//cases/compiler/contextualTyping30.ts
../TypeScript/tests//cases/compiler/contextualTyping31.ts
../TypeScript/tests//cases/compiler/contextualTyping32.ts
../TypeScript/tests//cases/compiler/contextualTyping33.ts
../TypeScript/tests//cases/compiler/contextualTyping34.ts
../TypeScript/tests//cases/compiler/contextualTyping34.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping35.ts
../TypeScript/tests//cases/compiler/contextualTyping35.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping36.ts
../TypeScript/tests//cases/compiler/contextualTyping36.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping37.ts
../TypeScript/tests//cases/compiler/contextualTyping37.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping38.ts
../TypeScript/tests//cases/compiler/contextualTyping38.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping39.ts
../TypeScript/tests//cases/compiler/contextualTyping39.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping4.ts
../TypeScript/tests//cases/compiler/contextualTyping40.ts
../TypeScript/tests//cases/compiler/contextualTyping40.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping41.ts
../TypeScript/tests//cases/compiler/contextualTyping41.ts: { index: 10,
lineNumber: 1,
column: 10,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping5.ts
../TypeScript/tests//cases/compiler/contextualTyping6.ts
../TypeScript/tests//cases/compiler/contextualTyping7.ts
../TypeScript/tests//cases/compiler/contextualTyping7.ts: { index: 26,
lineNumber: 1,
column: 26,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping8.ts
../TypeScript/tests//cases/compiler/contextualTyping8.ts: { index: 26,
lineNumber: 1,
column: 26,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/contextualTyping9.ts
../TypeScript/tests//cases/compiler/contextualTypingArrayOfLambdas.ts
../TypeScript/tests//cases/compiler/contextualTypingOfAccessors.ts
../TypeScript/tests//cases/compiler/contextualTypingOfArrayLiterals1.ts
../TypeScript/tests//cases/compiler/contextualTypingOfConditionalExpression.ts
../TypeScript/tests//cases/compiler/contextualTypingOfConditionalExpression2.ts
../TypeScript/tests//cases/compiler/contextualTypingOfGenericFunctionTypedArguments1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -104,13 +104,4 @@
"name": "forEach"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
@@ -324,17 +315,5 @@
"name": "f"
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -407,17 +386,5 @@
"expression": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
interface Collection<T> {
- length: number;
- add(x: T): void;
- remove(x: T): boolean;
+ length: number,
+ add(x: T): void,
+ remove(x: T): boolean
}
interface Combinators {
- forEach<T>(c: Collection<T>, f: (x: T) => Date): void;
+ forEach(c: Collection<T>, f: (x: T) => Date): void
}
@@ -13,5 +13,9 @@
// errors on all 3 lines, bug was that r5 was the only line with errors
-var f = (x: number) => { return x.toFixed() };
-var r5 = _.forEach<number>(c2, f);
-var r6 = _.forEach<number>(c2, (x) => { return x.toFixed() });
+var f = (x: number) => {
+ return x.toFixed();
+};
+var r5 = _.forEach(c2, f);
+var r6 = _.forEach(c2, x => {
+ return x.toFixed();
+});
../TypeScript/tests//cases/compiler/contextualTypingOfLambdaReturnExpression.ts
../TypeScript/tests//cases/compiler/contextualTypingOfLambdaWithMultipleSignatures.ts
../TypeScript/tests//cases/compiler/contextualTypingOfLambdaWithMultipleSignatures2.ts
../TypeScript/tests//cases/compiler/contextualTypingOfObjectLiterals.ts
../TypeScript/tests//cases/compiler/contextualTypingOfObjectLiterals2.ts
../TypeScript/tests//cases/compiler/contextualTypingOfTooShortOverloads.ts
../TypeScript/tests//cases/compiler/contextualTypingTwoInstancesOfSameTypeParameter.ts
../TypeScript/tests//cases/compiler/contextualTypingWithFixedTypeParameters1.ts
../TypeScript/tests//cases/compiler/contextualTypingWithGenericAndNonGenericSignature.ts
../TypeScript/tests//cases/compiler/contextualTypingWithGenericSignature.ts
../TypeScript/tests//cases/compiler/continueInIterationStatement1.ts
../TypeScript/tests//cases/compiler/continueInIterationStatement2.ts
../TypeScript/tests//cases/compiler/continueInIterationStatement3.ts
../TypeScript/tests//cases/compiler/continueInIterationStatement4.ts
../TypeScript/tests//cases/compiler/continueInLoopsWithCapturedBlockScopedBindings1.ts
../TypeScript/tests//cases/compiler/continueLabel.ts
../TypeScript/tests//cases/compiler/continueNotInIterationStatement1.ts
../TypeScript/tests//cases/compiler/continueNotInIterationStatement2.ts
../TypeScript/tests//cases/compiler/continueNotInIterationStatement3.ts
../TypeScript/tests//cases/compiler/continueNotInIterationStatement4.ts
../TypeScript/tests//cases/compiler/continueTarget1.ts
../TypeScript/tests//cases/compiler/continueTarget2.ts
../TypeScript/tests//cases/compiler/continueTarget3.ts
../TypeScript/tests//cases/compiler/continueTarget4.ts
../TypeScript/tests//cases/compiler/continueTarget5.ts
../TypeScript/tests//cases/compiler/continueTarget6.ts
../TypeScript/tests//cases/compiler/controlFlowArrayErrors.ts
../TypeScript/tests//cases/compiler/controlFlowArrays.ts
../TypeScript/tests//cases/compiler/controlFlowCaching.ts
../TypeScript/tests//cases/compiler/controlFlowDestructuringParameters.ts
../TypeScript/tests//cases/compiler/controlFlowInstanceof.ts
../TypeScript/tests//cases/compiler/controlFlowInstanceof.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/Users/despairblue/git/prettier/src/printer.js:3620:19)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:205:21)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
../TypeScript/tests//cases/compiler/controlFlowJavascript.ts
../TypeScript/tests//cases/compiler/controlFlowLoopAnalysis.ts
../TypeScript/tests//cases/compiler/controlFlowNoImplicitAny.ts
../TypeScript/tests//cases/compiler/controlFlowOuterVariable.ts
../TypeScript/tests//cases/compiler/controlFlowPropertyDeclarations.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -23,5 +23,5 @@
* @param {string} string String to repeat
* @param {number} times Number of times to repeat string. Integer.
- * @see http://jsperf.com/string-repeater/2
+ * @see http:jsperf.com/string-repeater/2
*/
function repeatString(string, times) {
../TypeScript/tests//cases/compiler/controlFlowPropertyInitializer.ts
../TypeScript/tests//cases/compiler/controlFlowSelfReferentialLoop.ts
../TypeScript/tests//cases/compiler/controlFlowWithIncompleteTypes.ts
../TypeScript/tests//cases/compiler/convertKeywords.ts
../TypeScript/tests//cases/compiler/convertKeywordsYes.ts
../TypeScript/tests//cases/compiler/convertKeywordsYes.ts: { index: 2207,
lineNumber: 177,
column: 21,
message: '\'(\' expected.' }
../TypeScript/tests//cases/compiler/copyrightWithNewLine1.ts
../TypeScript/tests//cases/compiler/copyrightWithoutNewLine1.ts
../TypeScript/tests//cases/compiler/couldNotSelectGenericOverload.ts
../TypeScript/tests//cases/compiler/covariance1.ts
../TypeScript/tests//cases/compiler/crashInResolveInterface.ts
../TypeScript/tests//cases/compiler/crashInresolveReturnStatement.ts
../TypeScript/tests//cases/compiler/crashInsourcePropertyIsRelatableToTargetProperty.ts
../TypeScript/tests//cases/compiler/crashIntypeCheckInvocationExpression.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -165,31 +165,5 @@
"name": "folder"
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSAnyKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -2,11 +2,8 @@
var nake;
function doCompile<P0, P1, P2>(fileset: P0, moduleType: P1) {
-
- return undefined;
+ return undefined;
}
export var compileServer = task<number, number, any>(<P0, P1, P2>() => {
-
- var folder = path.join(),
- fileset = nake.fileSetSync<number, number, any>(folder)
+ var folder = path.join(), fileset = nake.fileSetSync(folder);
return doCompile<number, number, any>(fileset, moduleType);
});
../TypeScript/tests//cases/compiler/crashIntypeCheckObjectCreationExpression.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -57,17 +57,5 @@
]
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
//@module: amd
export class BuildWorkspaceService {
- public injectRequestService<P0, P1, P2>(service: P0) {
- this.injectBuildService<number>(new X(service));
- }
- public injectBuildService<P0>(service: P0) {
- }
+ public injectRequestService<P0, P1, P2>(service: P0) {
+ this.injectBuildService(new X(service));
+ }
+ public injectBuildService<P0>(service: P0) {}
}
../TypeScript/tests//cases/compiler/crashOnMethodSignatures.ts
../TypeScript/tests//cases/compiler/crashRegressionTest.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,316 +9,326 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Util"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "TemplateEngine"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "Literal",
- "value": "use strict"
- }
- },
- {
- "type": "TSInterfaceDeclaration",
- "name": {
- "type": "Identifier",
- "name": "TemplateKeyValue"
- },
- "members": [
- {
- "type": "TSIndexSignature",
- "parameters": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Util"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "TemplateEngine"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "Identifier",
- "name": "name",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
- }
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "Literal",
+ "value": "use strict"
}
- }
- ],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
- }
- }
- }
- ]
- },
- {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "StringTemplate"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "_templateStorage"
},
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "private",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TemplateStorage"
- }
- }
- }
- },
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
+ {
+ "type": "TSInterfaceDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "TemplateKeyValue"
+ },
+ "members": [
{
- "type": "Identifier",
- "name": "templateStorage",
+ "type": "TSIndexSignature",
+ "parameters": [
+ {
+ "type": "Identifier",
+ "name": "name",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
+ }
+ }
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TemplateStorage"
- }
+ "type": "TSStringKeyword"
}
- },
- "decorators": []
+ }
}
- ],
- "generator": false,
- "expression": false,
- "async": false,
+ ]
+ },
+ {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "StringTemplate"
+ },
"body": {
- "type": "BlockStatement",
+ "type": "ClassBody",
"body": [
{
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "ThisExpression"
- },
- "property": {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "_templateStorage"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "private",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
"type": "Identifier",
- "name": "_templateStorage"
- },
- "computed": false
- },
- "right": {
- "type": "Identifier",
- "name": "templateStorage"
+ "name": "TemplateStorage"
+ }
}
}
- }
- ]
- }
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- },
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "text"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
+ },
{
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "ThisExpression"
- },
- "property": {
- "type": "Identifier",
- "name": "_templateStorage"
- },
- "computed": false
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "templateStorage",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TemplateStorage"
+ }
+ }
},
- "property": {
- "type": "Identifier",
- "name": "templateSources"
+ "decorators": []
+ }
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "AssignmentExpression",
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "ThisExpression"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "_templateStorage"
+ },
+ "computed": false
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "templateStorage"
+ }
+ }
+ }
+ ]
+ }
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "text"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "AssignmentExpression",
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "ThisExpression"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "_templateStorage"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "templateSources"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "ThisExpression"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "_name"
+ },
+ "computed": false
+ },
+ "computed": true
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "value"
+ }
+ }
+ }
+ ]
+ },
+ "returnType": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
+ },
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
},
- "computed": false
- },
- "property": {
- "type": "MemberExpression",
- "object": {
- "type": "ThisExpression"
- },
- "property": {
- "type": "Identifier",
- "name": "_name"
- },
- "computed": false
- },
- "computed": true
- },
- "right": {
- "type": "Identifier",
- "name": "value"
- }
- }
+ "decorators": []
+ }
+ ]
+ },
+ "computed": false,
+ "static": false,
+ "kind": "method",
+ "accessibility": "public",
+ "decorators": []
}
]
},
- "returnType": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- },
- "params": [
- {
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
"type": "Identifier",
- "name": "value",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
+ "name": "TemplateStorage"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "templateSources"
+ },
+ "value": {
+ "type": "ObjectExpression",
+ "properties": []
+ },
+ "computed": false,
+ "static": false,
+ "accessibility": "public",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TemplateKeyValue"
+ }
+ }
+ }
+ },
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "templateData"
+ },
+ "value": {
+ "type": "ObjectExpression",
+ "properties": []
+ },
+ "computed": false,
+ "static": false,
+ "accessibility": "public",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TemplateKeyValue"
+ }
+ }
+ }
}
- },
- "decorators": []
- }
- ]
- },
- "computed": false,
- "static": false,
- "kind": "method",
- "accessibility": "public",
- "decorators": []
- }
- ]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "TemplateStorage"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "templateSources"
+ ]
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
},
- "value": {
- "type": "ObjectExpression",
- "properties": []
- },
- "computed": false,
- "static": false,
- "accessibility": "public",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TemplateKeyValue"
- }
- }
- }
- },
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "templateData"
- },
- "value": {
- "type": "ObjectExpression",
- "properties": []
- },
- "computed": false,
- "static": false,
- "accessibility": "public",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TemplateKeyValue"
- }
- }
- }
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,24 +1,23 @@
-module MsPortal.Util.TemplateEngine {
- "use strict";
-
- interface TemplateKeyValue {
- [name: string]: string;
- }
-
- class StringTemplate {
+module MsPortal {
+ module Util {
+ module TemplateEngine {
+ "use strict";interface TemplateKeyValue {
+ [name: string]: string
+ }class StringTemplate {
private _templateStorage: TemplateStorage;
-
+
constructor(templateStorage: TemplateStorage) {
- this._templateStorage = templateStorage;
+ this._templateStorage = templateStorage;
}
-
+
public text(value?: string): any {
- this._templateStorage.templateSources[this._name] = value;
+ this._templateStorage.templateSources[this._name] = value;
}
- }
-
- export class TemplateStorage {
+ }
+ export class TemplateStorage {
public templateSources: TemplateKeyValue = {};
public templateData: TemplateKeyValue = {};
+ }
}
+ }
}
../TypeScript/tests//cases/compiler/createArray.ts
../TypeScript/tests//cases/compiler/createArray.ts: TypeError: Cannot read property 'type' of null
at printMemberLookup (/Users/despairblue/git/prettier/src/printer.js:3062:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:283:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1080:31)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/customEventDetail.ts
../TypeScript/tests//cases/compiler/cyclicGenericTypeInstantiation.ts
../TypeScript/tests//cases/compiler/cyclicGenericTypeInstantiationInference.ts
../TypeScript/tests//cases/compiler/cyclicModuleImport.ts
../TypeScript/tests//cases/compiler/cyclicTypeInstantiation.ts
../TypeScript/tests//cases/compiler/debugger.ts
../TypeScript/tests//cases/compiler/debuggerEmit.ts
../TypeScript/tests//cases/compiler/declarationEmitArrayTypesFromGenericArrayUsage.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,10 +18,5 @@
"type": "Identifier",
"name": "Array"
- },
- "typeArguments": [
- {
- "type": "TSStringKeyword"
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,2 +1,2 @@
// @declaration: true
-interface A extends Array<string> { }
+interface A extends Array {}
../TypeScript/tests//cases/compiler/declarationEmitBindingPatterns.ts
../TypeScript/tests//cases/compiler/declarationEmitClassMemberNameConflict.ts
../TypeScript/tests//cases/compiler/declarationEmitClassMemberNameConflict2.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport1.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport2.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport3.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport4.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport5.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport6.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport7.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExport8.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExportWithTempVarName.ts
../TypeScript/tests//cases/compiler/declarationEmitDefaultExportWithTempVarNameWithBundling.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuring1.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuring2.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuring3.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuring4.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuring5.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringArrayPattern1.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringArrayPattern2.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringArrayPattern3.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringArrayPattern4.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringArrayPattern5.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringObjectLiteralPattern.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringObjectLiteralPattern1.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringObjectLiteralPattern2.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringOptionalBindingParametersInOverloads.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringParameterProperties.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringPrivacyError.ts
../TypeScript/tests//cases/compiler/declarationEmitDestructuringWithOptionalBindingParameters.ts
../TypeScript/tests//cases/compiler/declarationEmitDetachedComment1.ts
../TypeScript/tests//cases/compiler/declarationEmitDetachedComment2.ts
../TypeScript/tests//cases/compiler/declarationEmitExportAssignment.ts
../TypeScript/tests//cases/compiler/declarationEmitExportDeclaration.ts
../TypeScript/tests//cases/compiler/declarationEmitExpressionInExtends.ts
../TypeScript/tests//cases/compiler/declarationEmitExpressionInExtends2.ts
../TypeScript/tests//cases/compiler/declarationEmitExpressionInExtends3.ts
../TypeScript/tests//cases/compiler/declarationEmitExpressionInExtends4.ts
../TypeScript/tests//cases/compiler/declarationEmitFBoundedTypeParams.ts
../TypeScript/tests//cases/compiler/declarationEmitFirstTypeArgumentGenericFunctionType.ts
../TypeScript/tests//cases/compiler/declarationEmitFirstTypeArgumentGenericFunctionType.ts: { index: 92,
lineNumber: 6,
column: 13,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/declarationEmitImportInExportAssignmentModule.ts
../TypeScript/tests//cases/compiler/declarationEmitIndexTypeNotFound.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedDefaultExportType.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedDefaultExportType2.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias1.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias2.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias3.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias4.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias5.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias6.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias7.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias8.ts
../TypeScript/tests//cases/compiler/declarationEmitInferedTypeAlias9.ts
../TypeScript/tests//cases/compiler/declarationEmitInterfaceWithNonEntityNameExpressionHeritage.ts
../TypeScript/tests//cases/compiler/declarationEmitInterfaceWithNonEntityNameExpressionHeritage.ts: { index: 61,
lineNumber: 4,
column: 24,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/declarationEmitInvalidExport.ts
../TypeScript/tests//cases/compiler/declarationEmitInvalidExport.ts: { index: 108,
lineNumber: 7,
column: 0,
message: 'Declaration or statement expected.' }
../TypeScript/tests//cases/compiler/declarationEmitInvalidReference.ts
../TypeScript/tests//cases/compiler/declarationEmitInvalidReference2.ts
../TypeScript/tests//cases/compiler/declarationEmitNameConflicts.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,7 @@
export class c {}
}
-export default f;
+export default f; // @Filename: declarationEmit_nameConflicts_0.ts
-
-import // @Filename: declarationEmit_nameConflicts_0.ts
-im = require("./declarationEmit_nameConflicts_1");
+import im = require("./declarationEmit_nameConflicts_1");
export module M {
../TypeScript/tests//cases/compiler/declarationEmitNameConflicts2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,109 +9,119 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Y"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "base"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "f"
+ "name": "base"
},
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
"body": {
- "type": "BlockStatement",
- "body": []
- }
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSModuleDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "M"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ }
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSModuleDeclaration",
+ "modifiers": [
{
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "v"
- },
- "init": null
+ "type": "TSExportKeyword"
}
],
- "kind": "var"
+ "name": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "v"
+ },
+ "init": null
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
},
- "specifiers": [],
- "source": null
- }
- ]
+ {
+ "type": "TSEnumDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "E"
+ },
+ "members": []
+ }
+ ]
+ }
}
- },
- {
- "type": "TSEnumDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "E"
- },
- "members": []
- }
- ]
+ ]
+ }
}
- }
+ ]
}
},
@@ -123,20 +133,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Y"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "base"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "Z"
+ "name": "Y"
},
"body": {
@@ -144,191 +145,215 @@
"body": [
{
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "VariableDeclarator",
- "id": {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "f"
+ "name": "Z"
},
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
},
- "property": {
- "type": "Identifier",
- "name": "Y"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
},
- "property": {
- "type": "Identifier",
- "name": "base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "f"
- },
- "computed": false
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "C"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
},
- "property": {
- "type": "Identifier",
- "name": "Y"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
},
- "property": {
- "type": "Identifier",
- "name": "base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "C"
- },
- "computed": false
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "M"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
},
- "property": {
- "type": "Identifier",
- "name": "Y"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
},
- "property": {
- "type": "Identifier",
- "name": "base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "M"
- },
- "computed": false
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "E"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "E"
+ },
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "E"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
},
- "property": {
- "type": "Identifier",
- "name": "Y"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "E"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
}
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
+ ]
+ }
}
]
}
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,16 +1,23 @@
// @declaration: true
-module X.Y.base {
- export function f() { }
- export class C { }
- export module M {
+module X {
+ module Y {
+ module base {
+
+ export function f() {
+ }export class C {}export module M {
export var v;
+ }export enum E {}
}
- export enum E { }
+ }
\ No newline at end of file
}
-module X.Y.base.Z {
- export var f = X.Y.base.f; // Should be base.f
- export var C = X.Y.base.C; // Should be base.C
- export var M = X.Y.base.M; // Should be base.M
- export var E = X.Y.base.E; // Should be base.E
-}
+module X { // Should be base.f // Should be base.C // Should be base.M // Should be base.E
+ module Y {
+ module base {
+ module Z {
+ export var f = X.Y.base.f;export var C = X.Y.base.C;
+ export var M = X.Y.base.M;export var E = X.Y.base.E;
+ }
+ }
+ }
+}
../TypeScript/tests//cases/compiler/declarationEmitNameConflicts3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -145,251 +145,256 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "P"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "f"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": []
- },
- "params": []
- },
- "computed": false,
- "static": true,
- "kind": "method",
- "accessibility": null,
- "decorators": []
- }
- ]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "P"
},
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "E"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": {
- "type": "Identifier",
- "name": "C"
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSEnumDeclaration",
- "modifiers": [
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "TSExportKeyword"
- }
- ],
- "name": {
- "type": "Identifier",
- "name": "D"
- },
- "members": [
- {
- "type": "TSEnumMember",
- "name": {
- "type": "Identifier",
- "name": "f"
- }
- }
- ]
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
"id": {
"type": "Identifier",
- "name": "v",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "JSXMemberExpression",
- "object": {
- "type": "JSXIdentifier",
- "name": "M"
+ "name": "C"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": []
},
- "property": {
- "type": "JSXIdentifier",
- "name": "D"
- }
- }
+ "params": []
+ },
+ "computed": false,
+ "static": true,
+ "kind": "method",
+ "accessibility": null,
+ "decorators": []
}
- }
+ ]
},
- "init": null
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
"id": {
"type": "Identifier",
- "name": "w"
+ "name": "E"
},
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "M"
- },
- "property": {
- "type": "Identifier",
- "name": "D"
- },
- "computed": false
- },
- "property": {
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSEnumDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "D"
+ },
+ "members": [
+ {
+ "type": "TSEnumMember",
+ "name": {
"type": "Identifier",
"name": "f"
- },
- "computed": false
+ }
}
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "x"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
+ ]
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
"type": "Identifier",
- "name": "M"
+ "name": "v",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "JSXMemberExpression",
+ "object": {
+ "type": "JSXIdentifier",
+ "name": "M"
+ },
+ "property": {
+ "type": "JSXIdentifier",
+ "name": "D"
+ }
+ }
+ }
+ }
},
- "property": {
+ "init": null
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
"type": "Identifier",
- "name": "C"
+ "name": "w"
},
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "f"
- },
- "computed": false
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "x"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "D"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
"type": "Identifier",
- "name": "M"
+ "name": "x"
},
- "property": {
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
"type": "Identifier",
- "name": "E"
+ "name": "x"
},
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "f"
- },
- "computed": false
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "M"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "E"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -2,27 +2,26 @@
// @module: commonjs
module M {
- export interface D { }
- export module D {
- export function f() { }
+ export interface D {}export module D {
+
+ export function f() {
}
- export module C {
- export function f() { }
+ }export module C {
+
+ export function f() {
}
- export module E {
- export function f() { }
+ }export module E {
+
+ export function f() {
}
+ }
}
-module M.P {
+module M { // ok // error, should be typeof M.D.f // error, should be typeof M.C.f // error, should be typeof M.E.f
+ module P {
\ No newline at end of file
+
export class C {
- static f() { }
- }
- export class E extends C { }
- export enum D {
- f
- }
- export var v: M.D; // ok
- export var w = M.D.f; // error, should be typeof M.D.f
- export var x = M.C.f; // error, should be typeof M.C.f
- export var x = M.E.f; // error, should be typeof M.E.f
-}
+ static f() {}
+ }export class E extends C {}export enum D { f }export var v: M.D;
+ export var w = M.D.f;export var x = M.C.f;export var x = M.E.f;
+ }
+}
../TypeScript/tests//cases/compiler/declarationEmitNameConflictsWithAlias.ts
../TypeScript/tests//cases/compiler/declarationEmitPromise.ts
../TypeScript/tests//cases/compiler/declarationEmitPromise.ts: { index: 517,
lineNumber: 14,
column: 51,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/declarationEmitProtectedMembers.ts
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasTypeParameterExtendingUnknownSymbol.ts
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters1.ts
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters2.ts
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,13 +21,4 @@
"name": "foo"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,8 +1,8 @@
-// @declaration: true
+// @declaration: true
type Foo<T> = {
- foo<U>(): Foo<U>
+ foo(): Foo<U>
};
function bar() {
- return {} as Foo<number>;
+ return {} as Foo<number>;
}
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters4.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,20 +21,4 @@
"name": "foo"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "J"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
-// @declaration: true
+// @declaration: true
type Foo<T, Y> = {
- foo<U, J>(): Foo<U, J>
+ foo(): Foo<U, J>
};
type SubFoo<R> = Foo<string, R>;
function foo() {
- return {} as SubFoo<number>;
+ return {} as SubFoo<number>;
}
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters5.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,20 +21,4 @@
"name": "foo"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "J"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
-// @declaration: true
+// @declaration: true
type Foo<T, Y> = {
- foo<U, J>(): Foo<U, J>
+ foo(): Foo<U, J>
};
export type SubFoo<R> = Foo<string, R>;
function foo() {
- return {} as SubFoo<number>;
+ return {} as SubFoo<number>;
}
../TypeScript/tests//cases/compiler/declarationEmitTypeAliasWithTypeParameters6.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,20 +21,4 @@
"name": "foo"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "J"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
-// @declaration: true
+// @declaration: true
type Foo<T, Y> = {
- foo<U, J>(): Foo<U, J>
+ foo(): Foo<U, J>
};
type SubFoo<R, S> = Foo<S, R>;
function foo() {
- return {} as SubFoo<number, string>;
+ return {} as SubFoo<number, string>;
}
../TypeScript/tests//cases/compiler/declarationEmitUnknownImport.ts
../TypeScript/tests//cases/compiler/declarationEmitUnknownImport2.ts
../TypeScript/tests//cases/compiler/declarationEmitUnknownImport2.ts: { index: 75,
lineNumber: 5,
column: 11,
message: '\'=\' expected.' }
../TypeScript/tests//cases/compiler/DeclarationErrorsNoEmitOnError.ts
../TypeScript/tests//cases/compiler/declarationFileOverwriteError.ts
../TypeScript/tests//cases/compiler/declarationFileOverwriteErrorWithOut.ts
../TypeScript/tests//cases/compiler/declarationFilesWithTypeReferences1.ts
../TypeScript/tests//cases/compiler/declarationFilesWithTypeReferences2.ts
../TypeScript/tests//cases/compiler/declarationFilesWithTypeReferences3.ts
../TypeScript/tests//cases/compiler/declarationFilesWithTypeReferences4.ts
../TypeScript/tests//cases/compiler/declarationMerging1.ts
../TypeScript/tests//cases/compiler/declarationMerging2.ts
../TypeScript/tests//cases/compiler/declareAlreadySeen.ts
../TypeScript/tests//cases/compiler/declareAlreadySeen.ts: { index: 49,
lineNumber: 2,
column: 37,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/declareClassInterfaceImplementation.ts
../TypeScript/tests//cases/compiler/declaredExternalModule.ts
../TypeScript/tests//cases/compiler/declaredExternalModuleWithExportAssignment.ts
../TypeScript/tests//cases/compiler/declareDottedExtend.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,33 +14,38 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -1,10 +1,8 @@
-declare module A.B
-{
- export class C{ }
+declare module A {
+ module B { export class C {} }
}
import ab = A.B;
+class D extends ab.C {}
-class D extends ab.C{ }
-
-class E extends A.B.C{ }
+class E extends A.B.C {}
../TypeScript/tests//cases/compiler/declareDottedModuleName.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,13 +18,18 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Q"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": []
- }
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Q"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
+ }
+ ]
}
}
@@ -53,13 +58,18 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "S"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": []
- }
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "S"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
+ }
+ ]
}
}
@@ -74,13 +84,18 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "U"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": []
- }
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "U"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,11 +1,12 @@
// @declaration: true
-module M {
- module P.Q { } // This shouldnt be emitted
+module M { // This shouldnt be emitted
+ module P { module Q { } }
}
-module M {
- export module R.S { } //This should be emitted
+module M { //This should be emitted
+ export module R { module S { } }
\ No newline at end of file
}
-module T.U { // This needs to be emitted
-}
+module T { // This needs to be emitted
+ module U { }
+}
../TypeScript/tests//cases/compiler/declareExternalModuleWithExportAssignedFundule.ts
../TypeScript/tests//cases/compiler/declareExternalModuleWithExportAssignedFundule.ts: { index: 95,
lineNumber: 2,
column: 67,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/declareFileExportAssignment.ts
../TypeScript/tests//cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts
../TypeScript/tests//cases/compiler/declareIdentifierAsBeginningOfStatementExpression01.ts
../TypeScript/tests//cases/compiler/declareIdentifierAsBeginningOfStatementExpression01.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/Users/despairblue/git/prettier/src/printer.js:3620:19)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:205:21)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
../TypeScript/tests//cases/compiler/declareModifierOnImport1.ts
../TypeScript/tests//cases/compiler/declareModifierOnTypeAlias.ts
../TypeScript/tests//cases/compiler/declFileAccessors.ts
../TypeScript/tests//cases/compiler/declFileAliasUseBeforeDeclaration.ts
../TypeScript/tests//cases/compiler/declFileAliasUseBeforeDeclaration2.ts
../TypeScript/tests//cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,8 @@
declare module "SubModule" {
export module m { export module m3 { interface c {} } }
-}
+} // @Filename: declFileAmbientExternalModuleWithSingleExportedModule_1.ts
-import // @Filename: declFileAmbientExternalModuleWithSingleExportedModule_1.ts
-///<reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.ts'/>
+import ///<reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.ts'/>
SubModule = require("SubModule");
export var x: undefined.c;
../TypeScript/tests//cases/compiler/declFileCallSignatures.ts
../TypeScript/tests//cases/compiler/declFileCallSignatures.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
../TypeScript/tests//cases/compiler/declFileClassExtendsNull.ts
../TypeScript/tests//cases/compiler/declFileClassWithIndexSignature.ts
../TypeScript/tests//cases/compiler/declFileClassWithStaticMethodReturningConstructor.ts
../TypeScript/tests//cases/compiler/declFileConstructors.ts
../TypeScript/tests//cases/compiler/declFileConstructSignatures.ts
../TypeScript/tests//cases/compiler/declFileConstructSignatures.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
at formatWithShebang (/Users/despairblue/git/prettier/index.js:91:12)
at Object.format (/Users/despairblue/git/prettier/index.js:105:12)
../TypeScript/tests//cases/compiler/declFileEnums.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -44,8 +44,4 @@
"type": "Identifier",
"name": "a"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
},
@@ -55,16 +51,4 @@
"type": "Identifier",
"name": "b"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "Identifier",
- "name": "a"
- },
- "right": {
- "type": "Literal",
- "value": 2
- }
}
},
@@ -74,8 +58,4 @@
"type": "Identifier",
"name": "c"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
}
@@ -94,8 +74,4 @@
"type": "Identifier",
"name": "a"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
},
@@ -105,16 +81,4 @@
"type": "Identifier",
"name": "b"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Math"
- },
- "property": {
- "type": "Identifier",
- "name": "PI"
- },
- "computed": false
}
},
@@ -124,16 +88,4 @@
"type": "Identifier",
"name": "c"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
- "type": "Identifier",
- "name": "a"
- },
- "right": {
- "type": "Literal",
- "value": 3
- }
}
}
@@ -173,8 +125,4 @@
"type": "Identifier",
"name": "d"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
},
Index:
===================================================================
---
+++
@@ -1,36 +1,11 @@
// @declaration: true
-enum e1 {
- a,
- b,
- c
-}
+enum e1 { a, b, c }
-enum e2 {
- a = 10,
- b = a + 2,
- c = 10,
-}
+enum e2 { a, b, c }
-enum e3 {
- a = 10,
- b = Math.PI,
- c = a + 3
-}
+enum e3 { a, b, c }
-enum e4 {
- a,
- b,
- c,
- d = 10,
- e
-}
+enum e4 { a, b, c, d, e }
-enum e5 {
- "Friday",
- "Saturday",
- "Sunday",
- "Weekend days"
-}
-
-
+enum e5 { "Friday", "Saturday", "Sunday", "Weekend days" }
../TypeScript/tests//cases/compiler/declFileEnumUsedAsValue.ts
../TypeScript/tests//cases/compiler/declFileExportAssignmentImportInternalModule.ts
../TypeScript/tests//cases/compiler/declFileExportAssignmentOfGenericInterface.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,7 @@
a: string
}
-export default Foo;
+export default Foo; // @Filename: declFileExportAssignmentOfGenericInterface_1.ts
-
-import // @Filename: declFileExportAssignmentOfGenericInterface_1.ts
-a = require("declFileExportAssignmentOfGenericInterface_0");
+import a = require("declFileExportAssignmentOfGenericInterface_0");
export var x: a<a<string>>;
x.a;
../TypeScript/tests//cases/compiler/declFileExportImportChain.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,19 +6,13 @@
export module m2 { export class c1 {} }
}
-export default m1;
+export default m1; // @Filename: declFileExportImportChain_b.ts
-export import // @Filename: declFileExportImportChain_b.ts
-a = require("declFileExportImportChain_a");
+export import a = require("declFileExportImportChain_a"); // @Filename: declFileExportImportChain_b1.ts
+import b = require("declFileExportImportChain_b");
+export default b; // @Filename: declFileExportImportChain_c.ts
-import // @Filename: declFileExportImportChain_b1.ts
-b = require("declFileExportImportChain_b");
-export default b;
-
-export import // @Filename: declFileExportImportChain_c.ts
-b1 = require("declFileExportImportChain_b1");
-
-import // @Filename: declFileExportImportChain_d.ts
-c = require("declFileExportImportChain_c");
+export import b1 = require("declFileExportImportChain_b1"); // @Filename: declFileExportImportChain_d.ts
+import c = require("declFileExportImportChain_c");
export var x: undefined.c1;
../TypeScript/tests//cases/compiler/declFileExportImportChain2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,16 +6,11 @@
export module m2 { export class c1 {} }
}
-export default m1;
+export default m1; // @Filename: declFileExportImportChain2_b.ts
+import a = require("declFileExportImportChain2_a");
+export default a; // @Filename: declFileExportImportChain2_c.ts
-import // @Filename: declFileExportImportChain2_b.ts
-a = require("declFileExportImportChain2_a");
-export default a;
-
-export import // @Filename: declFileExportImportChain2_c.ts
-b = require("declFileExportImportChain2_b");
-
-import // @Filename: declFileExportImportChain2_d.ts
-c = require("declFileExportImportChain2_c");
+export import b = require("declFileExportImportChain2_b"); // @Filename: declFileExportImportChain2_d.ts
+import c = require("declFileExportImportChain2_c");
export var x: undefined.c1;
../TypeScript/tests//cases/compiler/declFileForClassWithMultipleBaseClasses.ts
../TypeScript/tests//cases/compiler/declFileForClassWithPrivateOverloadedFunction.ts
../TypeScript/tests//cases/compiler/declFileForExportedImport.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -2,9 +2,8 @@
// @module: commonjs
// @Filename: declFileForExportedImport_0.ts
-export var x: number;
+export var x: number; // @Filename: declFileForExportedImport_1.ts
-export import // @Filename: declFileForExportedImport_1.ts
-///<reference path='declFileForExportedImport_0.ts'/>
+export import ///<reference path='declFileForExportedImport_0.ts'/>
a = require("./declFileForExportedImport_0");
var y = a.x;
../TypeScript/tests//cases/compiler/declFileForFunctionTypeAsTypeParameter.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -78,17 +78,5 @@
"type": "Identifier",
"name": "X"
- },
- "typeArguments": [
- {
- "type": "TSFunctionType",
- "parameters": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,9 +1,5 @@
// @declaration: true
-class X<T> {
-}
-class C extends X<() => number> {
-}
-interface I extends X<() => number> {
-}
-
+class X<T> {}
+class C extends X<() => number> {}
+interface I extends X {}
../TypeScript/tests//cases/compiler/declFileForInterfaceWithOptionalFunction.ts
../TypeScript/tests//cases/compiler/declFileForInterfaceWithRestParams.ts
../TypeScript/tests//cases/compiler/declFileForTypeParameters.ts
../TypeScript/tests//cases/compiler/declFileForVarList.ts
../TypeScript/tests//cases/compiler/declFileFunctions.ts
../TypeScript/tests//cases/compiler/declFileGenericClassWithGenericExtendedClass.ts
../TypeScript/tests//cases/compiler/declFileGenericType.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -1007,44 +1007,5 @@
"computed": false
},
- "arguments": [],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "JSXMemberExpression",
- "object": {
- "type": "JSXIdentifier",
- "name": "C"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "A"
- }
- },
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "JSXMemberExpression",
- "object": {
- "type": "JSXIdentifier",
- "name": "C"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "B"
- }
- },
- "typeParameters": null
- }
- ]
- }
- }
- ]
- }
+ "arguments": []
}
}
@@ -1134,21 +1095,5 @@
},
"computed": false
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "JSXMemberExpression",
- "object": {
- "type": "JSXIdentifier",
- "name": "C"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "B"
- }
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -2,21 +2,26 @@
// @declaration: true
export module C {
- export class A<T>{ }
- export class B { }
-
- export function F<T>(x: T): A<B> { return null; }
- export function F2<T>(x: T): C.A<C.B> { return null; }
- export function F3<T>(x: T): C.A<C.B>[] { return null; }
- export function F4<T extends A<B>>(x: T): Array<C.A<C.B>> { return null; }
-
- export function F5<T>(): T { return null; }
-
- export function F6<T extends A<B>>(x: T): T { return null; }
-
- export class D<T>{
-
- constructor(public val: T) { }
-
- }
+ export class A<T> {}export class B {}
+ export function F<T>(x: T): A<B> {
+ return null;
+ }
+ export function F2<T>(x: T): C.A<C.B> {
+ return null;
+ }
+ export function F3<T>(x: T): C.A<C.B>[] {
+ return null;
+ }
+ export function F4<T extends A<B>>(x: T): Array<C.A<C.B>> {
+ return null;
+ }
+ export function F5<T>(): T {
+ return null;
+ }
+ export function F6<T extends A<B>>(x: T): T {
+ return null;
+ }
+ export class D<T> {
+ constructor(public val: T) {}
+ }
}
@@ -28,13 +33,13 @@
export var e = C.F4;
-export var x = (new C.D<C.A<C.B>>(new C.A<C.B>())).val;
+export var x = new C.D<C.A<C.B>>(new C.A<C.B>()).val;
-export function f<T extends C.A<C.B>>() { }
+export function f<T extends C.A<C.B>>() {}
-export var g = C.F5<C.A<C.B>>();
+export var g = C.F5();
-export class h extends C.A<C.B>{ }
+export class h extends C.A<C.B> {}
-export interface i extends C.A<C.B> { }
+export interface i extends C.A {}
export var j = C.F6;
../TypeScript/tests//cases/compiler/declFileGenericType2.ts
../TypeScript/tests//cases/compiler/declFileGenericType2.ts: { index: 163,
lineNumber: 7,
column: 47,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/declFileImportChainInExportAssignment.ts
../TypeScript/tests//cases/compiler/declFileImportedTypeUseInTypeArgPosition.ts
../TypeScript/tests//cases/compiler/declFileImportModuleWithExportAssignment.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -16,9 +16,8 @@
test2(): m2.connectModule
};
-export default m2;
+export default m2; // @Filename: declFileImportModuleWithExportAssignment_1.ts
-import // @Filename: declFileImportModuleWithExportAssignment_1.ts
-/**This is on import declaration*/
+import /**This is on import declaration*/
a1 = require("./declFileImportModuleWithExportAssignment_0");
export var a = a1;
../TypeScript/tests//cases/compiler/declFileIndexSignatures.ts
../TypeScript/tests//cases/compiler/declFileInternalAliases.ts
../TypeScript/tests//cases/compiler/declFileMethods.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -92,6 +92,5 @@
/** This is comment for function signature*/
- fooWithParameters(/** this is comment about a*/ a: string, /** this is comment for b*/
- b: number): void,
+ fooWithParameters(/** this is comment about a*/ a: string /** this is comment for b*/, b: number): void,
fooWithRestParameters(a: string, ...rests: string[]): string,
@@ -189,6 +188,5 @@
/** This is comment for function signature*/
- fooWithParameters(/** this is comment about a*/ a: string, /** this is comment for b*/
- b: number): void,
+ fooWithParameters(/** this is comment about a*/ a: string /** this is comment for b*/, b: number): void,
fooWithRestParameters(a: string, ...rests: string[]): string,
../TypeScript/tests//cases/compiler/declFileModuleAssignmentInObjectLiteralProperty.ts
../TypeScript/tests//cases/compiler/declFileModuleContinuation.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,27 +9,32 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSInterfaceDeclaration",
- "modifiers": [
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "TSExportKeyword"
+ "type": "TSInterfaceDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "members": []
}
- ],
- "name": {
- "type": "Identifier",
- "name": "Z"
- },
- "members": []
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -41,64 +46,74 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "W"
+ "name": "C"
},
"body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [
- {
- "type": "ClassImplements",
- "id": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
"type": "Identifier",
- "name": "A"
+ "name": "W"
},
- "property": {
- "type": "Identifier",
- "name": "C"
+ "body": {
+ "type": "ClassBody",
+ "body": []
},
- "computed": false
+ "superClass": null,
+ "implements": [
+ {
+ "type": "ClassImplements",
+ "id": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "decorators": []
},
- "property": {
- "type": "Identifier",
- "name": "Z"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
}
- }
- ],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,10 +1,8 @@
// @declaration: true
-module A.C {
- export interface Z {
- }
+module A {
+ module C { export interface Z {} }
}
-module A.B.C {
- export class W implements A.C.Z {
\ No newline at end of file
- }
-}
+module A {
+ module B { module C { export class W implements A.C.Z {} } }
+}
../TypeScript/tests//cases/compiler/declFileModuleWithPropertyOfTypeModule.ts
../TypeScript/tests//cases/compiler/declFileObjectLiteralWithAccessors.ts
../TypeScript/tests//cases/compiler/declFileObjectLiteralWithOnlyGetter.ts
../TypeScript/tests//cases/compiler/declFileObjectLiteralWithOnlySetter.ts
../TypeScript/tests//cases/compiler/declFileOptionalInterfaceMethod.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,13 +19,4 @@
"type": "TSQuestionToken"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": []
}
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
// @declaration: true
interface X {
- f? <T>();
+ f?()
}
../TypeScript/tests//cases/compiler/declFilePrivateMethodOverloads.ts
../TypeScript/tests//cases/compiler/declFilePrivateStatic.ts
../TypeScript/tests//cases/compiler/declFileRegressionTests.ts
../TypeScript/tests//cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts
../TypeScript/tests//cases/compiler/declFileRestParametersOfFunctionAndFunctionType.ts: { index: 255,
lineNumber: 8,
column: 26,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/declFileTypeAnnotationArrayType.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationBuiltInType.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationParenType.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationStringLiteral.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationTupleType.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationTypeAlias.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationTypeLiteral.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationTypeQuery.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationTypeReference.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationUnionType.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorAccessors.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorParameterOfFunction.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorReturnTypeOfFunction.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorTypeAlias.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorTypeLiteral.ts
../TypeScript/tests//cases/compiler/declFileTypeAnnotationVisibilityErrorVariableDeclaration.ts
../TypeScript/tests//cases/compiler/declFileTypeofClass.ts
../TypeScript/tests//cases/compiler/declFileTypeofEnum.ts
../TypeScript/tests//cases/compiler/declFileTypeofFunction.ts
../TypeScript/tests//cases/compiler/declFileTypeofInAnonymousType.ts
../TypeScript/tests//cases/compiler/declFileTypeofModule.ts
../TypeScript/tests//cases/compiler/declFileWithClassNameConflictingWithClassReferredByExtendsClause.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,59 +14,69 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Base"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "W"
+ "name": "Base"
},
"body": {
- "type": "ClassBody",
+ "type": "TSModuleBlock",
"body": [
{
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "id"
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "id"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": null,
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ }
+ }
+ ]
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
},
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": null,
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
- }
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -78,86 +88,96 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Y"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "base"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "W"
+ "name": "base"
},
"body": {
- "type": "ClassBody",
+ "type": "TSModuleBlock",
"body": [
{
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "name"
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "name"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": null,
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
+ }
+ }
+ ]
+ },
+ "superClass": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "computed": false
+ },
+ "implements": [],
+ "decorators": []
},
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": null,
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
- }
- }
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "A"
- },
- "property": {
- "type": "Identifier",
- "name": "B"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "W"
- },
- "computed": false
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -169,20 +189,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Y"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "base"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "Z"
+ "name": "Y"
},
"body": {
@@ -190,82 +201,106 @@
"body": [
{
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "typeParameters": {
- "type": "TypeParameterDeclaration",
- "params": [
- {
- "type": "TypeParameter",
- "name": "TValue",
- "constraint": null
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "W"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "value"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": null,
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSBooleanKeyword"
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "typeParameters": {
+ "type": "TypeParameterDeclaration",
+ "params": [
+ {
+ "type": "TypeParameter",
+ "name": "TValue",
+ "constraint": null
+ }
+ ]
+ },
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "value"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": null,
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSBooleanKeyword"
+ }
+ }
+ }
+ ]
+ },
+ "superClass": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Y"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "base"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "computed": false
+ },
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
}
- }
+ ]
}
- ]
- },
- "superClass": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
- },
- "property": {
- "type": "Identifier",
- "name": "Y"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "base"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "W"
- },
- "computed": false
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ }
+ ]
+ }
}
]
}
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,20 +1,35 @@
// @declaration: true
-declare module A.B.Base {
- export class W {
+declare module A {
+ module B {
+ module Base {
+
+ export class W {
id: number;
+ }
}
+ }
}
-module X.Y.base {
+module X {
+ module Y {
+ module base {
- export class W extends A.B.Base.W {
+ export class W extends A.B.Base.W {
name: string;
+ }
}
+ }
}
-module X.Y.base.Z {
+module X {
+ module Y {
+ module base {
+ module Z {
- export class W<TValue> extends X.Y.base.W {
- value: boolean;
+ export class W<TValue> extends X.Y.base.W {
+ value: boolean;
+ }
+ }
}
+ }
}
../TypeScript/tests//cases/compiler/declFileWithErrorsInInputDeclarationFile.ts
../TypeScript/tests//cases/compiler/declFileWithErrorsInInputDeclarationFile.ts: { index: 111,
lineNumber: 5,
column: 37,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts
../TypeScript/tests//cases/compiler/declFileWithErrorsInInputDeclarationFileWithOut.ts: { index: 128,
lineNumber: 6,
column: 37,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/declFileWithExtendsClauseThatHasItsContainerNameConflict.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,35 +14,45 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- }
- ]
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ }
+ ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -54,52 +64,57 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "EventManager"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "id"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": null,
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "EventManager"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "id"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": null,
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ }
}
- }
- }
- ]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -111,62 +126,72 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "ContextMenu"
+ "name": "C"
},
"body": {
- "type": "ClassBody",
+ "type": "TSModuleBlock",
"body": [
{
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "name"
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "ContextMenu"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "name"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": null,
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
+ }
+ }
+ ]
+ },
+ "superClass": {
+ "type": "Identifier",
+ "name": "EventManager"
+ },
+ "implements": [],
+ "decorators": []
},
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": null,
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
- }
- }
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": {
- "type": "Identifier",
- "name": "EventManager"
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,19 +1,25 @@
// @declaration: true
-declare module A.B.C {
- class B {
- }
+declare module A {
+ module B { module C { class B {} } }
}
-module A.B {
+module A {
+ module B {
+
export class EventManager {
- id: number;
-
+ id: number;
}
+ }
\ No newline at end of file
}
-module A.B.C {
- export class ContextMenu extends EventManager {
+module A {
+ module B {
+ module C {
+
+ export class ContextMenu extends EventManager {
name: string;
+ }
}
-}
+ }
+}
../TypeScript/tests//cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,34 +9,44 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSInterfaceDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSInterfaceDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "members": []
+ }
+ ]
}
- ],
- "name": {
- "type": "Identifier",
- "name": "Z"
- },
- "members": []
- }
- ]
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -48,20 +58,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "C"
+ "name": "A"
},
"body": {
@@ -72,66 +73,90 @@
"name": {
"type": "Identifier",
- "name": "A"
+ "name": "B"
},
"body": {
"type": "TSModuleBlock",
- "body": []
- }
- },
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "W"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [
+ "body": [
{
- "type": "ClassImplements",
- "id": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "X"
- },
- "property": {
- "type": "Identifier",
"name": "A"
},
- "computed": false
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
},
- "property": {
- "type": "Identifier",
- "name": "C"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Z"
- },
- "computed": false
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [
+ {
+ "type": "ClassImplements",
+ "id": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
}
- ],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ }
}
]
}
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,12 +1,10 @@
// @declaration: true
-module X.A.C {
- export interface Z {
- }
+module X {
+ module A { module C { export interface Z {} } }
}
-module X.A.B.C {
- module A {
- }
- export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
\ No newline at end of file
- }
-}
+module X { // This needs to be refered as X.A.C.Z as A has conflict
+ module A {
+ module B { module C { module A { }export class W implements X.A.C.Z {} } }
+ }
+}
../TypeScript/tests//cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,34 +9,44 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSInterfaceDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSInterfaceDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "members": []
+ }
+ ]
}
- ],
- "name": {
- "type": "Identifier",
- "name": "Z"
- },
- "members": []
- }
- ]
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -48,20 +58,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "C"
+ "name": "A"
},
"body": {
@@ -69,50 +70,74 @@
"body": [
{
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "W"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "ClassImplements",
- "id": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "A"
- },
- "property": {
- "type": "Identifier",
- "name": "C"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Z"
- },
- "computed": false
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [
+ {
+ "type": "ClassImplements",
+ "id": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
}
- ],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ }
}
]
}
}
- }
+ ]
}
},
@@ -124,20 +149,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "C"
+ "name": "A"
},
"body": {
@@ -148,9 +164,33 @@
"name": {
"type": "Identifier",
- "name": "A"
+ "name": "B"
},
"body": {
"type": "TSModuleBlock",
- "body": []
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
+ }
+ ]
+ }
+ }
+ ]
}
}
@@ -158,5 +198,5 @@
}
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,15 +1,12 @@
// @declaration: true
-module X.A.C {
- export interface Z {
- }
+module X {
+ module A { module C { export interface Z {} } }
}
-module X.A.B.C {
- export class W implements A.C.Z { // This can refer to it as A.C.Z
- }
+module X { // This can refer to it as A.C.Z
+ module A { module B { module C { export class W implements A.C.Z {} } } }
}
\ No newline at end of file
-module X.A.B.C {
- module A {
- }
-}
+module X {
+ module A { module B { module C { module A { } } } }
+}
../TypeScript/tests//cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,34 +9,44 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSInterfaceDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSInterfaceDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "members": []
+ }
+ ]
}
- ],
- "name": {
- "type": "Identifier",
- "name": "Z"
- },
- "members": []
- }
- ]
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -48,20 +58,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "C"
+ "name": "A"
},
"body": {
@@ -69,58 +70,82 @@
"body": [
{
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
- "type": "Identifier",
- "name": "W"
- },
- "body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
{
- "type": "ClassImplements",
- "id": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "X"
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "W"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [
+ {
+ "type": "ClassImplements",
+ "id": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Z"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "decorators": []
},
- "property": {
- "type": "Identifier",
- "name": "A"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "C"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Z"
- },
- "computed": false
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
}
- ],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ }
}
]
}
}
- }
+ ]
}
},
@@ -132,20 +157,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "A"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "C"
+ "name": "A"
},
"body": {
@@ -154,16 +170,40 @@
{
"type": "TSModuleDeclaration",
- "modifiers": [
- {
- "type": "TSExportKeyword"
- }
- ],
"name": {
"type": "Identifier",
- "name": "A"
+ "name": "B"
},
"body": {
"type": "TSModuleBlock",
- "body": []
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "modifiers": [
+ {
+ "type": "TSExportKeyword"
+ }
+ ],
+ "name": {
+ "type": "Identifier",
+ "name": "A"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": []
+ }
+ }
+ ]
+ }
+ }
+ ]
}
}
@@ -171,5 +211,5 @@
}
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,15 +1,12 @@
// @declaration: true
-module X.A.C {
- export interface Z {
- }
+module X {
+ module A { module C { export interface Z {} } }
}
-module X.A.B.C {
- export class W implements X.A.C.Z { // This needs to be refered as X.A.C.Z as A has conflict
- }
+module X { // This needs to be refered as X.A.C.Z as A has conflict
+ module A { module B { module C { export class W implements X.A.C.Z {} } } }
}
\ No newline at end of file
-module X.A.B.C {
- export module A {
- }
-}
+module X {
+ module A { module B { module C { export module A { } } } }
+}
../TypeScript/tests//cases/compiler/declInput-2.ts
../TypeScript/tests//cases/compiler/declInput.ts
../TypeScript/tests//cases/compiler/declInput.ts: { index: 197,
lineNumber: 9,
column: 41,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/declInput3.ts
../TypeScript/tests//cases/compiler/declInput3.ts: { index: 198,
lineNumber: 9,
column: 41,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/declInput4.ts
../TypeScript/tests//cases/compiler/decoratorInJsFile.ts
../TypeScript/tests//cases/compiler/decoratorInJsFile.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorInJsFile1.ts
../TypeScript/tests//cases/compiler/decoratorInJsFile1.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts
../TypeScript/tests//cases/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decoratorMetadataOnInferredType.ts
../TypeScript/tests//cases/compiler/decoratorMetadataOnInferredType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decoratorMetadataPromise.ts
../TypeScript/tests//cases/compiler/decoratorMetadataPromise.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decoratorMetadataRestParameterWithImportedType.ts
../TypeScript/tests//cases/compiler/decoratorMetadataRestParameterWithImportedType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decoratorMetadataWithConstructorType.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithConstructorType.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision2.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision3.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision4.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision5.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision6.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision7.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts
../TypeScript/tests//cases/compiler/decoratorMetadataWithImportDeclarationNameCollision8.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:165:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:164:14)
../TypeScript/tests//cases/compiler/decoratorWithUnderscoreMethod.ts
../TypeScript/tests//cases/compiler/decoratorWithUnderscoreMethod.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/decrementAndIncrementOperators.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -82,16 +82,16 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Literal",
+ "value": 1
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
"value": 2
}
@@ -102,16 +102,16 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Literal",
+ "value": 1
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
"value": 2
}
@@ -122,18 +122,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Literal",
"value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
}
+ },
+ "right": {
+ "type": "Literal",
+ "value": 2
}
}
@@ -142,18 +142,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Literal",
"value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
}
+ },
+ "right": {
+ "type": "Literal",
+ "value": 2
}
}
@@ -162,17 +162,17 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
}
@@ -182,17 +182,17 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": false,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "right": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": false,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
}
@@ -202,18 +202,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "++",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "++",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "x"
}
}
@@ -222,18 +222,18 @@
"type": "ExpressionStatement",
"expression": {
- "type": "UpdateExpression",
- "operator": "--",
- "prefix": true,
- "argument": {
- "type": "BinaryExpression",
- "operator": "+",
- "left": {
+ "type": "BinaryExpression",
+ "operator": "+",
+ "left": {
+ "type": "UpdateExpression",
+ "operator": "--",
+ "prefix": true,
+ "argument": {
"type": "Identifier",
"name": "x"
- },
- "right": {
- "type": "Identifier",
- "name": "x"
}
+ },
+ "right": {
+ "type": "Identifier",
+ "name": "x"
}
}
Index:
===================================================================
---
+++
@@ -2,23 +2,23 @@
// errors
-1 ++;
+1++;
-(1)++;
-(1)--;
+1++;
+1--;
-++(1);
---(1);
+++1;
+--1;
-(1 + 2)++;
-(1 + 2)--;
+1 + 2++;
+1 + 2--;
-++(1 + 2);
---(1 + 2);
+++1 + 2;
+--1 + 2;
-(x + x)++;
-(x + x)--;
+x + x++;
+x + x--;
-++(x + x);
---(x + x);
+++x + x;
+--x + x;
//OK
@@ -29,9 +29,9 @@
--x;
-(x)++;
---(x);
+x++;
+--x;
-((x))++;
-((x))--;
+x++;
+x--;
x[x++]++;
../TypeScript/tests//cases/compiler/deduplicateImportsInSystem.ts
../TypeScript/tests//cases/compiler/deeplyNestedCheck.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "X"
- },
- "default": {
- "type": "TSTypeLiteral",
- "members": []
}
}
@@ -90,27 +86,4 @@
"name": "child"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- },
- "constraint": {
- "type": "TSTypeOperator",
- "operator": 127,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- }
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,9 +1,9 @@
// Repro from #14794
-interface DataSnapshot<X = {}> {
- child(path: string): DataSnapshot;
+interface DataSnapshot<X> {
+ child(path: string): DataSnapshot
}
interface Snapshot<T> extends DataSnapshot {
- child<U extends keyof T>(path: U): Snapshot<T[U]>;
+ child(path: U): Snapshot<T[U]>
}
../TypeScript/tests//cases/compiler/defaultArgsInFunctionExpressions.ts
../TypeScript/tests//cases/compiler/defaultArgsInFunctionExpressions.ts: { index: 803,
lineNumber: 25,
column: 4,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/defaultArgsInOverloads.ts
../TypeScript/tests//cases/compiler/defaultBestCommonTypesHaveDecls.ts
../TypeScript/tests//cases/compiler/defaultIndexProps1.ts
../TypeScript/tests//cases/compiler/defaultIndexProps2.ts
../TypeScript/tests//cases/compiler/defaultOfAnyInStrictNullChecks.ts
../TypeScript/tests//cases/compiler/defaultParameterAddsUndefinedWithStrictNullChecks.ts
../TypeScript/tests//cases/compiler/defaultValueInConstructorOverload1.ts
../TypeScript/tests//cases/compiler/defaultValueInFunctionOverload1.ts
../TypeScript/tests//cases/compiler/defaultValueInFunctionTypes.ts
../TypeScript/tests//cases/compiler/defaultValueInFunctionTypes.ts: { index: 43,
lineNumber: 2,
column: 8,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/deleteOperator1.ts
../TypeScript/tests//cases/compiler/deleteOperatorInStrictMode.ts
../TypeScript/tests//cases/compiler/deleteReadonly.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -11,9 +11,4 @@
{
"type": "TSPropertySignature",
- "modifiers": [
- {
- "type": "TSReadonlyKeyword"
- }
- ],
"name": {
"type": "Identifier",
@@ -92,9 +87,4 @@
{
"type": "TSIndexSignature",
- "modifiers": [
- {
- "type": "TSReadonlyKeyword"
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
interface A {
- readonly b
+ b
}
var a: A = {
@@ -9,12 +9,12 @@
interface B {
- readonly [k: string]: string
+ [k: string]: string
}
var b: B = {
- 'test': 'test'
+ test: "test"
};
-delete b['test'];
+delete b["test"];
-delete ((((b['test']))));
+delete b["test"];
../TypeScript/tests//cases/compiler/dependencyViaImportAlias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
//@module: amd
//@Filename: A.ts
-export class A {}
+export class A {} //@Filename: B.ts
-import //@Filename: B.ts
-a = require("A");
+import a = require("A");
import A = a.A;
export default A;
../TypeScript/tests//cases/compiler/deprecatedBool.ts
../TypeScript/tests//cases/compiler/derivedClassConstructorWithExplicitReturns01.ts
../TypeScript/tests//cases/compiler/derivedClasses.ts
../TypeScript/tests//cases/compiler/derivedClassOverridesPrivateFunction1.ts
../TypeScript/tests//cases/compiler/derivedInterfaceCallSignature.ts
../TypeScript/tests//cases/compiler/derivedTypeCallingBaseImplWithOptionalParams.ts
../TypeScript/tests//cases/compiler/derivedTypeIncompatibleSignatures.ts
../TypeScript/tests//cases/compiler/destructureOptionalParameter.ts
../TypeScript/tests//cases/compiler/destructuringAssignmentWithDefault.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations1.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations2.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations3.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations4.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations5.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations6.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations7.ts
../TypeScript/tests//cases/compiler/destructuringInVariableDeclarations8.ts
../TypeScript/tests//cases/compiler/destructuringPropertyAssignmentNameIsNotAssignmentTarget.ts
../TypeScript/tests//cases/compiler/destructuringWithGenericParameter.ts
../TypeScript/tests//cases/compiler/destructuringWithNewExpression.ts
../TypeScript/tests//cases/compiler/destructuringWithNumberLiteral.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfConstructor1.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfConstructor2.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfFunctionBody1.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfFunctionBody2.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfLambdaFunction1.ts
../TypeScript/tests//cases/compiler/detachedCommentAtStartOfLambdaFunction2.ts
../TypeScript/tests//cases/compiler/differentTypesWithSameName.ts
../TypeScript/tests//cases/compiler/discriminantPropertyCheck.ts
../TypeScript/tests//cases/compiler/discriminantsAndNullOrUndefined.ts
../TypeScript/tests//cases/compiler/discriminantsAndPrimitives.ts
../TypeScript/tests//cases/compiler/discriminantsAndTypePredicates.ts
../TypeScript/tests//cases/compiler/discriminatedUnionErrorMessage.ts
../TypeScript/tests//cases/compiler/doNotEmitDetachedComments.ts
../TypeScript/tests//cases/compiler/doNotEmitDetachedCommentsAtStartOfConstructor.ts
../TypeScript/tests//cases/compiler/doNotEmitDetachedCommentsAtStartOfFunctionBody.ts
../TypeScript/tests//cases/compiler/doNotEmitDetachedCommentsAtStartOfLambdaFunction.ts
../TypeScript/tests//cases/compiler/doNotEmitPinnedCommentNotOnTopOfFile.ts
../TypeScript/tests//cases/compiler/doNotEmitPinnedCommentOnNotEmittedNode.ts
../TypeScript/tests//cases/compiler/doNotEmitPinnedCommentOnNotEmittedNodets.ts
../TypeScript/tests//cases/compiler/doNotEmitPinnedDetachedComments.ts
../TypeScript/tests//cases/compiler/doNotemitTripleSlashComments.ts
../TypeScript/tests//cases/compiler/doNotEmitTripleSlashCommentsInEmptyFile.ts
../TypeScript/tests//cases/compiler/doNotEmitTripleSlashCommentsOnNotEmittedNode.ts
../TypeScript/tests//cases/compiler/doNotWidenAtObjectLiteralPropertyAssignment.ts
../TypeScript/tests//cases/compiler/dontShowCompilerGeneratedMembers.ts
../TypeScript/tests//cases/compiler/dontShowCompilerGeneratedMembers.ts: { index: 31,
lineNumber: 3,
column: 5,
message: 'Type parameter declaration expected.' }
../TypeScript/tests//cases/compiler/dottedModuleName.ts
../TypeScript/tests//cases/compiler/dottedModuleName.ts: { index: 63,
lineNumber: 3,
column: 28,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/dottedModuleName2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,36 +9,41 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "x"
- },
- "init": {
- "type": "Literal",
- "value": 1
- }
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "init": {
+ "type": "Literal",
+ "value": 1
+ }
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -167,43 +172,53 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "x"
- },
- "init": {
- "type": "Literal",
- "value": 1
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "C"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "init": {
+ "type": "Literal",
+ "value": 1
+ }
+ }
+ ],
+ "kind": "var"
+ },
+ "specifiers": [],
+ "source": null
}
- }
- ],
- "kind": "var"
- },
- "specifiers": [],
- "source": null
- }
- ]
+ ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -256,12 +271,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "A"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "B"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,42 +1,19 @@
-module A.B {
-
- export var x = 1;
-
+module A {
+ module B { export var x = 1; }
}
-
-
-
-module AA { export module B {
-
- export var x = 1;
-
-} }
-
-
-
+
+module AA {
+ export module B { export var x = 1; }
+}
+
var tmpOK = AA.B.x;
-
+
var tmpError = A.B.x;
+module A {
+ module B { module C { export var x = 1; } }
+}
-module A.B.C
-
-{
-
- export var x = 1;
-
+module M {
+ import X1 = A;import X2 = A.B;import X3 = undefined.C;
}
-
-
-
-module M
-
-{
-
- import X1 = A;
-
- import X2 = A.B;
-
- import X3 = A.B.C;
-
-}
../TypeScript/tests//cases/compiler/dottedNamesInSystem.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,41 +14,51 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "B"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "C"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "B"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "foo"
+ "name": "C"
},
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
"body": {
- "type": "BlockStatement",
- "body": []
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "foo"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ }
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ ]
+ }
}
- }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -1,8 +1,14 @@
// @module: system
-export namespace A.B.C {
- export function foo() {}
+export module A {
+ module B {
+ module C {
+
+ export function foo() {
\ No newline at end of file
+ }
+ }
+ }
}
export function bar() {
- return A.B.C.foo();
-}
+ return A.B.C.foo();
+}
../TypeScript/tests//cases/compiler/dottedSymbolResolution1.ts
../TypeScript/tests//cases/compiler/doubleUnderStringLiteralAssignability.ts
../TypeScript/tests//cases/compiler/doWhileLoop.ts
../TypeScript/tests//cases/compiler/doWhileUnreachableCode.ts
../TypeScript/tests//cases/compiler/downlevelLetConst1.ts
../TypeScript/tests//cases/compiler/downlevelLetConst1.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1122:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
../TypeScript/tests//cases/compiler/downlevelLetConst10.ts
../TypeScript/tests//cases/compiler/downlevelLetConst11.ts
../TypeScript/tests//cases/compiler/downlevelLetConst12.ts
../TypeScript/tests//cases/compiler/downlevelLetConst13.ts
../TypeScript/tests//cases/compiler/downlevelLetConst14.ts
../TypeScript/tests//cases/compiler/downlevelLetConst15.ts
../TypeScript/tests//cases/compiler/downlevelLetConst16.ts
../TypeScript/tests//cases/compiler/downlevelLetConst17.ts
../TypeScript/tests//cases/compiler/downlevelLetConst18.ts
../TypeScript/tests//cases/compiler/downlevelLetConst19.ts
../TypeScript/tests//cases/compiler/downlevelLetConst2.ts
../TypeScript/tests//cases/compiler/downlevelLetConst3.ts
../TypeScript/tests//cases/compiler/downlevelLetConst4.ts
../TypeScript/tests//cases/compiler/downlevelLetConst5.ts
../TypeScript/tests//cases/compiler/downlevelLetConst6.ts
../TypeScript/tests//cases/compiler/downlevelLetConst7.ts
../TypeScript/tests//cases/compiler/downlevelLetConst8.ts
../TypeScript/tests//cases/compiler/downlevelLetConst9.ts
../TypeScript/tests//cases/compiler/duplicateAnonymousInners1.ts
../TypeScript/tests//cases/compiler/duplicateAnonymousModuleClasses.ts
../TypeScript/tests//cases/compiler/duplicateClassElements.ts
../TypeScript/tests//cases/compiler/duplicateConstructorOverloadSignature.ts
../TypeScript/tests//cases/compiler/duplicateConstructorOverloadSignature2.ts
../TypeScript/tests//cases/compiler/duplicateConstructSignature.ts
../TypeScript/tests//cases/compiler/duplicateConstructSignature2.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration1.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierBindingElementInParameterDeclaration2.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierComputedName.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierDifferentModifiers.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierDifferentSpelling.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierInCatchBlock.ts
../TypeScript/tests//cases/compiler/duplicateIdentifiersAcrossContainerBoundaries.ts
../TypeScript/tests//cases/compiler/duplicateIdentifiersAcrossFileBoundaries.ts
../TypeScript/tests//cases/compiler/duplicateIdentifierShouldNotShortCircuitBaseTypeBinding.ts
../TypeScript/tests//cases/compiler/duplicateInterfaceMembers1.ts
../TypeScript/tests//cases/compiler/duplicateLabel1.ts
../TypeScript/tests//cases/compiler/duplicateLabel2.ts
../TypeScript/tests//cases/compiler/duplicateLabel3.ts
../TypeScript/tests//cases/compiler/duplicateLabel4.ts
../TypeScript/tests//cases/compiler/duplicateLocalVariable1.ts
../TypeScript/tests//cases/compiler/duplicateLocalVariable1.ts: { index: 37,
lineNumber: 3,
column: 3,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/duplicateLocalVariable2.ts
../TypeScript/tests//cases/compiler/duplicateLocalVariable3.ts
../TypeScript/tests//cases/compiler/duplicateLocalVariable4.ts
../TypeScript/tests//cases/compiler/duplicateObjectLiteralProperty.ts
../TypeScript/tests//cases/compiler/duplicateOverloadInTypeAugmentation1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -135,13 +135,4 @@
"name": "reduce"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,8 +1,16 @@
interface Array<T> {
- reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T,
- initialValue?: T): T;
- reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U,
- initialValue: U): U;
+ reduce(callbackfn: (
+ previousValue: T,
+ currentValue: T,
\ No newline at end of file
+ currentIndex: number,
+ array: T[]
+ ) => T, initialValue?: T): T,
+ reduce(callbackfn: (
+ previousValue: U,
+ currentValue: T,
+ currentIndex: number,
+ array: T[]
+ ) => U, initialValue: U): U
}
var a: Array<string>;
-var r5 = a.reduce((x, y) => x + y);
+var r5 = a.reduce((x, y) => x + y);
../TypeScript/tests//cases/compiler/duplicatePropertiesInStrictMode.ts
../TypeScript/tests//cases/compiler/duplicateStringNamedProperty1.ts
../TypeScript/tests//cases/compiler/duplicateSymbolsExportMatching.ts
../TypeScript/tests//cases/compiler/duplicateTypeParameters1.ts
../TypeScript/tests//cases/compiler/duplicateTypeParameters2.ts
../TypeScript/tests//cases/compiler/duplicateTypeParameters2.ts: { index: 82,
lineNumber: 8,
column: 14,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/duplicateTypeParameters3.ts
../TypeScript/tests//cases/compiler/duplicateVarAndImport.ts
../TypeScript/tests//cases/compiler/duplicateVarAndImport2.ts
../TypeScript/tests//cases/compiler/duplicateVariableDeclaration1.ts
../TypeScript/tests//cases/compiler/duplicateVariablesByScope.ts
../TypeScript/tests//cases/compiler/duplicateVariablesWithAny.ts
../TypeScript/tests//cases/compiler/duplicateVarsAcrossFileBoundaries.ts
../TypeScript/tests//cases/compiler/dynamicModuleTypecheckError.ts
../TypeScript/tests//cases/compiler/dynamicRequire.ts
../TypeScript/tests//cases/compiler/elaboratedErrors.ts
../TypeScript/tests//cases/compiler/elidingImportNames.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,4 +7,5 @@
var x: typeof a;
+
import a2 = require("./elidingImportNames_main1"); // alias not used in typeof
var b2 = a2;
../TypeScript/tests//cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts
../TypeScript/tests//cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES5.ts: { index: 29,
lineNumber: 3,
column: 10,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.ts
../TypeScript/tests//cases/compiler/emitAccessExpressionOfCastedObjectLiteralExpressionInArrowFunctionES6.ts: { index: 29,
lineNumber: 3,
column: 10,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/emitBOM.ts
../TypeScript/tests//cases/compiler/emitBundleWithPrologueDirectives1.ts
../TypeScript/tests//cases/compiler/emitBundleWithShebang1.ts
../TypeScript/tests//cases/compiler/emitBundleWithShebang1.ts: { index: 62,
lineNumber: 5,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/emitBundleWithShebang2.ts
../TypeScript/tests//cases/compiler/emitBundleWithShebang2.ts: { index: 85,
lineNumber: 6,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts
../TypeScript/tests//cases/compiler/emitBundleWithShebangAndPrologueDirectives1.ts: { index: 85,
lineNumber: 6,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts
../TypeScript/tests//cases/compiler/emitBundleWithShebangAndPrologueDirectives2.ts: { index: 85,
lineNumber: 6,
column: 0,
message: 'Invalid character.' }
../TypeScript/tests//cases/compiler/emitCapturingThisInTupleDestructuring1.ts
../TypeScript/tests//cases/compiler/emitCapturingThisInTupleDestructuring2.ts
../TypeScript/tests//cases/compiler/emitCommentsOnlyFile.ts
../TypeScript/tests//cases/compiler/emitDecoratorMetadata_object.ts
../TypeScript/tests//cases/compiler/emitDecoratorMetadata_object.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/emitDecoratorMetadata_restArgs.ts
../TypeScript/tests//cases/compiler/emitDecoratorMetadata_restArgs.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at path.map (/Users/despairblue/git/prettier/src/printer.js:2377:25)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printStatementSequence (/Users/despairblue/git/prettier/src/printer.js:2362:8)
at /Users/despairblue/git/prettier/src/printer.js:1537:26
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:1536:22)
../TypeScript/tests//cases/compiler/emitMemberAccessExpression.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -23,103 +23,113 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "PeopleAtWork"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Model"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "PeopleAtWork"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "_Person"
+ "name": "Model"
},
"body": {
- "type": "ClassBody",
+ "type": "TSModuleBlock",
"body": [
{
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "populate"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "_Person"
+ },
"body": {
- "type": "BlockStatement",
+ "type": "ClassBody",
"body": [
{
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "populate"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "res"
+ },
+ "init": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "Model"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "KnockoutExtentions"
+ },
+ "computed": false
+ }
+ }
+ ],
+ "kind": "var"
+ }
+ ]
+ },
+ "params": [
+ {
"type": "Identifier",
- "name": "res"
- },
- "init": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Model"
+ "name": "raw",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSAnyKeyword"
+ }
},
- "property": {
- "type": "Identifier",
- "name": "KnockoutExtentions"
- },
- "computed": false
+ "decorators": []
}
- }
- ],
- "kind": "var"
+ ]
+ },
+ "computed": false,
+ "static": false,
+ "kind": "method",
+ "accessibility": "public",
+ "decorators": []
}
]
},
- "params": [
- {
- "type": "Identifier",
- "name": "raw",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSAnyKeyword"
- }
- },
- "decorators": []
- }
- ]
+ "superClass": null,
+ "implements": [],
+ "decorators": []
},
- "computed": false,
- "static": false,
- "kind": "method",
- "accessibility": "public",
- "decorators": []
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -151,40 +161,50 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "PeopleAtWork"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Model"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "PeopleAtWork"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "KnockoutExtentions"
+ "name": "Model"
},
"body": {
- "type": "ClassBody",
- "body": []
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "KnockoutExtentions"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": []
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -6,10 +6,15 @@
/// <reference path="emitMemberAccessExpression_file3.ts" />
"use strict";
-module Microsoft.PeopleAtWork.Model {
- export class _Person {
+module Microsoft {
+ module PeopleAtWork {
+ module Model {
+
+ export class _Person {
public populate(raw: any) {
- var res = Model.KnockoutExtentions;
+ var res = Model.KnockoutExtentions;
}
+ }
}
+ }
}
@@ -18,6 +23,5 @@
/// <reference path="emitMemberAccessExpression_file1.ts" />
declare var OData: any;
-module Microsoft.PeopleAtWork.Model {
- export class KnockoutExtentions {
- }
-}
\ No newline at end of file
+module Microsoft {
+ module PeopleAtWork { module Model { export class KnockoutExtentions {} } }
+}
../TypeScript/tests//cases/compiler/emitPinnedCommentsOnTopOfFile.ts
../TypeScript/tests//cases/compiler/emitPostComments.ts
../TypeScript/tests//cases/compiler/emitPreComments.ts
../TypeScript/tests//cases/compiler/emitSkipsThisWithRestParameter.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1ES6.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitPropertyDeclaration1ES6.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.ts
../TypeScript/tests//cases/compiler/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1ES6.ts
../TypeScript/tests//cases/compiler/emitThisInObjectLiteralGetter.ts
../TypeScript/tests//cases/compiler/emitThisInSuperMethodCall.ts
../TypeScript/tests//cases/compiler/emitTopOfFileTripleSlashCommentOnNotEmittedNodeIfRemoveCommentsIsFalse.ts
../TypeScript/tests//cases/compiler/emptyEnum.ts
../TypeScript/tests//cases/compiler/emptyExpr.ts
../TypeScript/tests//cases/compiler/emptyFile-declaration.ts
../TypeScript/tests//cases/compiler/emptyFile-souremap.ts
../TypeScript/tests//cases/compiler/emptyFile.ts
../TypeScript/tests//cases/compiler/emptyGenericParamList.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -41,6 +41,5 @@
"type": "Identifier",
"name": "I"
- },
- "typeArguments": []
+ }
}
}
Index:
===================================================================
---
+++
@@ -1,2 +1,2 @@
class I<T> {}
-var x: I<>;
\ No newline at end of file
+var x: I;
../TypeScript/tests//cases/compiler/emptyIndexer.ts
../TypeScript/tests//cases/compiler/emptyMemberAccess.ts
../TypeScript/tests//cases/compiler/emptyMemberAccess.ts: { index: 27,
lineNumber: 3,
column: 4,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/emptyModuleName.ts
../TypeScript/tests//cases/compiler/emptyThenWarning.ts
../TypeScript/tests//cases/compiler/emptyThenWithoutWarning.ts
../TypeScript/tests//cases/compiler/emptyTypeArgumentList.ts
../TypeScript/tests//cases/compiler/emptyTypeArgumentListWithNew.ts
../TypeScript/tests//cases/compiler/enumAssignmentCompat.ts
../TypeScript/tests//cases/compiler/enumAssignmentCompat2.ts
../TypeScript/tests//cases/compiler/enumAssignmentCompat3.ts
../TypeScript/tests//cases/compiler/enumAssignmentCompat3.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/enumAssignmentCompat4.ts
../TypeScript/tests//cases/compiler/enumAssignmentCompat5.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -44,16 +44,4 @@
"type": "Identifier",
"name": "A"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 1
- }
}
},
@@ -63,16 +51,4 @@
"type": "Identifier",
"name": "B"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
- }
}
},
@@ -82,16 +58,4 @@
"type": "Identifier",
"name": "C"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 3
- }
}
}
Index:
===================================================================
---
+++
@@ -1,10 +1,4 @@
-enum E {
- A, B, C
-}
-enum Computed {
- A = 1 << 1,
- B = 1 << 2,
- C = 1 << 3,
-}
+enum E { A, B, C }
+enum Computed { A, B, C }
let n: number;
let e: E = n; // ok because it's too inconvenient otherwise
@@ -19,5 +13,2 @@
c = 4; // ok
let ca: Computed.A = 1; // error, Computed.A isn't a literal type because Computed has no enum literals
-
-
-
../TypeScript/tests//cases/compiler/enumBasics1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -8,5 +8,5 @@
function foo(e: E) {}
-foo(a); // shouldn't error
+foo(a); shouldn't error
../TypeScript/tests//cases/compiler/enumCodeGenNewLines1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "b"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
},
@@ -25,8 +21,4 @@
"type": "Identifier",
"name": "c"
- },
- "initializer": {
- "type": "Literal",
- "value": 2
}
},
@@ -36,8 +28,4 @@
"type": "Identifier",
"name": "d"
- },
- "initializer": {
- "type": "Literal",
- "value": 3
}
}
Index:
===================================================================
---
+++
@@ -1,5 +1,1 @@
-enum foo {
- b = 1,
- c = 2,
- d = 3
-}
+enum foo { b, c, d }
../TypeScript/tests//cases/compiler/enumConflictsWithGlobalIdentifier.ts
../TypeScript/tests//cases/compiler/enumConflictsWithGlobalIdentifier.ts: { index: 79,
lineNumber: 4,
column: 28,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/enumDecl1.ts
../TypeScript/tests//cases/compiler/enumFromExternalModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,9 +1,8 @@
// @module: commonjs
// @Filename: enumFromExternalModule_0.ts
-export enum Mode { Open }
+export enum Mode { Open } // @Filename: enumFromExternalModule_1.ts
-import // @Filename: enumFromExternalModule_1.ts
-///<reference path='enumFromExternalModule_0.ts'/>
+import ///<reference path='enumFromExternalModule_0.ts'/>
f = require("./enumFromExternalModule_0");
var x = f.Mode.Open;
../TypeScript/tests//cases/compiler/enumGenericTypeClash.ts
../TypeScript/tests//cases/compiler/enumIdentifierLiterals.ts
../TypeScript/tests//cases/compiler/enumIndexer.ts
../TypeScript/tests//cases/compiler/enumInitializersWithExponents.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -19,8 +19,4 @@
"type": "Identifier",
"name": "a"
- },
- "initializer": {
- "type": "Literal",
- "value": 1000
}
},
@@ -30,8 +26,4 @@
"type": "Identifier",
"name": "b"
- },
- "initializer": {
- "type": "Literal",
- "value": 1e+25
}
},
@@ -41,8 +33,4 @@
"type": "Identifier",
"name": "c"
- },
- "initializer": {
- "type": "Literal",
- "value": 0.001
}
},
@@ -52,8 +40,4 @@
"type": "Identifier",
"name": "d"
- },
- "initializer": {
- "type": "Literal",
- "value": 1e-9
}
},
@@ -63,8 +47,4 @@
"type": "Identifier",
"name": "e"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
},
@@ -74,8 +54,4 @@
"type": "Identifier",
"name": "f"
- },
- "initializer": {
- "type": "Literal",
- "value": 1e+25
}
}
Index:
===================================================================
---
+++
@@ -1,9 +1,2 @@
// Must be integer literals.
-declare enum E {
- a = 1e3, // ok
- b = 1e25, // ok
- c = 1e-3, // error
- d = 1e-9, // error
- e = 1e0, // ok
- f = 1e+25 // ok
-}
\ No newline at end of file
+declare enum E { a, b, c, d, e, f } // ok // ok // error // error // ok // ok
../TypeScript/tests//cases/compiler/enumLiteralAssignableToEnumInsideUnion.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -108,16 +108,4 @@
"type": "Identifier",
"name": "A"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 1
- }
}
},
@@ -127,16 +115,4 @@
"type": "Identifier",
"name": "B"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 2
- }
}
}
@@ -172,16 +148,4 @@
"type": "Identifier",
"name": "A"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 10
- }
}
},
@@ -191,16 +155,4 @@
"type": "Identifier",
"name": "B"
- },
- "initializer": {
- "type": "BinaryExpression",
- "operator": "<<",
- "left": {
- "type": "Literal",
- "value": 1
- },
- "right": {
- "type": "Literal",
- "value": 11
- }
}
}
@@ -345,12 +297,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "X"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foo"
- }
+ "name": "undefined"
},
"property": {
@@ -366,12 +311,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "X"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foo"
- }
+ "name": "undefined"
},
"property": {
@@ -431,12 +369,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "X"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foo"
- }
+ "name": "undefined"
},
"property": {
@@ -496,12 +427,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "X"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Foo"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,28 +1,18 @@
module X {
- export enum Foo {
- A, B
- }
+ export enum Foo { A, B }
}
module Y {
- export enum Foo {
- A, B
- }
+ export enum Foo { A, B }
}
module Z {
- export enum Foo {
- A = 1 << 1,
- B = 1 << 2,
- }
+ export enum Foo { A, B }
}
module Ka {
- export enum Foo {
- A = 1 << 10,
- B = 1 << 11,
- }
+ export enum Foo { A, B }
}
const e0: X.Foo | boolean = Y.Foo.A; // ok
const e1: X.Foo | boolean = Z.Foo.A; // not legal, Z is computed
-const e2: X.Foo.A | X.Foo.B | boolean = Z.Foo.A; // still not legal
-const e3: X.Foo.B | boolean = Z.Foo.A; // not legal
-const e4: X.Foo.A | boolean = Z.Foo.A; // not legal either because Z.Foo is computed and Z.Foo.A is not necessarily assignable to X.Foo.A
+const e2: undefined.A | undefined.B | boolean = Z.Foo.A; // still not legal
+const e3: undefined.B | boolean = Z.Foo.A; // not legal
+const e4: undefined.A | boolean = Z.Foo.A; // not legal either because Z.Foo is computed and Z.Foo.A is not necessarily assignable to X.Foo.A
const e5: Ka.Foo | boolean = Z.Foo.A; // ok
../TypeScript/tests//cases/compiler/enumLiteralsSubtypeReduction.ts
../TypeScript/tests//cases/compiler/enumMapBackIntoItself.ts
../TypeScript/tests//cases/compiler/enumMemberResolution.ts
../TypeScript/tests//cases/compiler/enumMemberResolution.ts: { index: 78,
lineNumber: 4,
column: 28,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/enumNegativeLiteral1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,13 +14,4 @@
"type": "Identifier",
"name": "a"
- },
- "initializer": {
- "type": "UnaryExpression",
- "operator": "-",
- "prefix": true,
- "argument": {
- "type": "Literal",
- "value": 5
- }
}
},
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-enum E {
- a = -5, b, c
-}
+enum E { a, b, c }
../TypeScript/tests//cases/compiler/enumNumbering1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -28,45 +28,4 @@
"type": "Identifier",
"name": "C"
- },
- "initializer": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Math"
- },
- "property": {
- "type": "Identifier",
- "name": "floor"
- },
- "computed": false
- },
- "arguments": [
- {
- "type": "BinaryExpression",
- "operator": "*",
- "left": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Math"
- },
- "property": {
- "type": "Identifier",
- "name": "random"
- },
- "computed": false
- },
- "arguments": []
- },
- "right": {
- "type": "Literal",
- "value": 1000
- }
- }
- ]
}
},
@@ -76,8 +35,4 @@
"type": "Identifier",
"name": "D"
- },
- "initializer": {
- "type": "Literal",
- "value": 10
}
},
Index:
===================================================================
---
+++
@@ -1,7 +1,1 @@
-enum Test {
- A,
- B,
- C = Math.floor(Math.random() * 1000),
- D = 10,
- E // Error but shouldn't be
-}
+enum Test { A, B, C, D, E } // Error but shouldn't be
../TypeScript/tests//cases/compiler/enumOperations.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "None"
- },
- "initializer": {
- "type": "Literal",
- "value": 0
}
}
Index:
===================================================================
---
+++
@@ -1,15 +1,15 @@
-enum Enum { None = 0 }
+enum Enum { None }
var enumType: Enum = Enum.None;
var numberType: number = 0;
var anyType: any = 0;
-
+
enumType ^ numberType;
numberType ^ anyType;
-
+
enumType & anyType;
enumType | anyType;
enumType ^ anyType;
~anyType;
-enumType <<anyType;
-enumType >>anyType;
-enumType >>>anyType;
+enumType << anyType;
+enumType >> anyType;
+enumType >>> anyType;
../TypeScript/tests//cases/compiler/enumPropertyAccess.ts
../TypeScript/tests//cases/compiler/enumsWithMultipleDeclarations1.ts
../TypeScript/tests//cases/compiler/enumsWithMultipleDeclarations2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -30,8 +30,4 @@
"type": "Identifier",
"name": "B"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
Index:
===================================================================
---
+++
@@ -1,11 +1,5 @@
-enum E {
- A
-}
+enum E { A }
-enum E {
- B = 1
-}
+enum E { B }
-enum E {
\ No newline at end of file
- C
-}
+enum E { C }
../TypeScript/tests//cases/compiler/enumsWithMultipleDeclarations3.ts
../TypeScript/tests//cases/compiler/enumUsedBeforeDeclaration.ts
../TypeScript/tests//cases/compiler/enumUsedBeforeDeclaration.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/enumWithComputedMember.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,16 +14,4 @@
"type": "Identifier",
"name": "X"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Literal",
- "value": ""
- },
- "property": {
- "type": "Identifier",
- "name": "length"
- },
- "computed": false
}
},
@@ -33,8 +21,4 @@
"type": "Identifier",
"name": "Y"
- },
- "initializer": {
- "type": "Identifier",
- "name": "X"
}
},
Index:
===================================================================
---
+++
@@ -1,5 +1,1 @@
-enum A {
- X = "".length,
- Y = X,
- Z
-}
+enum A { X, Y, Z }
../TypeScript/tests//cases/compiler/enumWithInfinityProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "Infinity"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-enum A {
- Infinity = 1
-}
+enum A { Infinity }
../TypeScript/tests//cases/compiler/enumWithNaNProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "NaN"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-enum A {
- NaN = 1
-}
+enum A { NaN }
../TypeScript/tests//cases/compiler/enumWithNegativeInfinityProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Literal",
"value": "-Infinity"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,1 @@
-enum A {
- "-Infinity" = 1
-}
+enum A { "-Infinity" }
../TypeScript/tests//cases/compiler/enumWithoutInitializerAfterComputedMember.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -21,8 +21,4 @@
"type": "Identifier",
"name": "b"
- },
- "initializer": {
- "type": "Identifier",
- "name": "a"
}
},
Index:
===================================================================
---
+++
@@ -1,5 +1,1 @@
-enum E {
- a,
- b = a,
- c
-}
\ No newline at end of file
+enum E { a, b, c }
../TypeScript/tests//cases/compiler/enumWithParenthesizedInitializer1.ts
../TypeScript/tests//cases/compiler/enumWithParenthesizedInitializer1.ts: { index: 20,
lineNumber: 3,
column: 0,
message: '\')\' expected.' }
../TypeScript/tests//cases/compiler/enumWithPrimitiveName.ts
../TypeScript/tests//cases/compiler/enumWithQuotedElementName1.ts
../TypeScript/tests//cases/compiler/enumWithQuotedElementName2.ts
../TypeScript/tests//cases/compiler/enumWithUnicodeEscape1.ts
../TypeScript/tests//cases/compiler/errorElaboration.ts
../TypeScript/tests//cases/compiler/errorForConflictingExportEqualsValue.ts
../TypeScript/tests//cases/compiler/errorForwardReferenceForwadingConstructor.ts
../TypeScript/tests//cases/compiler/errorHandlingInInstanceOf.ts
../TypeScript/tests//cases/compiler/errorHandlingInInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/Users/despairblue/git/prettier/src/printer.js:3620:19)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:205:21)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
../TypeScript/tests//cases/compiler/errorLocationForInterfaceExtension.ts
../TypeScript/tests//cases/compiler/errorMessageOnObjectLiteralType.ts
../TypeScript/tests//cases/compiler/errorMessagesIntersectionTypes01.ts
../TypeScript/tests//cases/compiler/errorMessagesIntersectionTypes02.ts
../TypeScript/tests//cases/compiler/errorMessagesIntersectionTypes03.ts
../TypeScript/tests//cases/compiler/errorMessagesIntersectionTypes04.ts
../TypeScript/tests//cases/compiler/errorOnContextuallyTypedReturnType.ts
../TypeScript/tests//cases/compiler/errorOnInitializerInInterfaceProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -20,8 +20,4 @@
"type": "TSNumberKeyword"
}
- },
- "initializer": {
- "type": "Literal",
- "value": 5
}
}
Index:
===================================================================
---
+++
@@ -1,3 +1,3 @@
interface Foo {
- bar: number = 5;
+ bar: number
}
../TypeScript/tests//cases/compiler/errorOnInitializerInObjectTypeLiteralProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -26,8 +26,4 @@
"type": "TSNumberKeyword"
}
- },
- "initializer": {
- "type": "Literal",
- "value": 5
}
}
@@ -65,8 +61,4 @@
"type": "TSNumberKeyword"
}
- },
- "initializer": {
- "type": "Literal",
- "value": 5
}
}
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
var Foo: {
- bar: number = 5;
+ bar: number
};
let Bar: {
- bar: number = 5;
+ bar: number
};
../TypeScript/tests//cases/compiler/errorRecoveryInClassDeclaration.ts
../TypeScript/tests//cases/compiler/errorRecoveryInClassDeclaration.ts: { index: 73,
lineNumber: 4,
column: 19,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/errorRecoveryWithDotFollowedByNamespaceKeyword.ts
../TypeScript/tests//cases/compiler/errorRecoveryWithDotFollowedByNamespaceKeyword.ts: { index: 72,
lineNumber: 4,
column: 14,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/errorsInGenericTypeReference.ts
../TypeScript/tests//cases/compiler/errorsInGenericTypeReference.ts: { index: 1156,
lineNumber: 42,
column: 23,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/errorsOnImportedSymbol.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,9 +7,7 @@
(): number
}
-export default Sammy;
+export default Sammy; // @Filename: errorsOnImportedSymbol_1.ts
-
-import // @Filename: errorsOnImportedSymbol_1.ts
-Sammy = require("./errorsOnImportedSymbol_0");
+import Sammy = require("./errorsOnImportedSymbol_0");
var x = new Sammy.Sammy();
var y = Sammy.Sammy();
../TypeScript/tests//cases/compiler/errorSupression1.ts
../TypeScript/tests//cases/compiler/errorTypesAsTypeArguments.ts
../TypeScript/tests//cases/compiler/errorWithTruncatedType.ts
../TypeScript/tests//cases/compiler/es2015modulekind.ts
../TypeScript/tests//cases/compiler/es2015modulekindWithES6Target.ts
../TypeScript/tests//cases/compiler/es2017basicAsync.ts
../TypeScript/tests//cases/compiler/es3-amd.ts
../TypeScript/tests//cases/compiler/es3-declaration-amd.ts
../TypeScript/tests//cases/compiler/es3-oldStyleOctalLiteralInEnums.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,13 +14,4 @@
"type": "Identifier",
"name": "x"
- },
- "initializer": {
- "type": "UnaryExpression",
- "operator": "-",
- "prefix": true,
- "argument": {
- "type": "Literal",
- "value": 1
- }
}
},
@@ -30,8 +21,4 @@
"type": "Identifier",
"name": "y"
- },
- "initializer": {
- "type": "Literal",
- "value": 2
}
}
Index:
===================================================================
---
+++
@@ -1,5 +1,2 @@
// @target: ES3
-enum E {
- x = -01,
- y = 02,
-}
\ No newline at end of file
+enum E { x, y }
../TypeScript/tests//cases/compiler/es3-oldStyleOctalLiteralTypes.ts
../TypeScript/tests//cases/compiler/es3-sourcemap-amd.ts
../TypeScript/tests//cases/compiler/es3defaultAliasIsQuoted.ts
../TypeScript/tests//cases/compiler/es5-amd.ts
../TypeScript/tests//cases/compiler/es5-asyncFunction.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionArrayLiterals.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionBinaryExpressions.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionBinaryExpressions.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/Users/despairblue/git/prettier/src/printer.js:3620:19)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:205:21)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
../TypeScript/tests//cases/compiler/es5-asyncFunctionCallExpressions.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionConditionals.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionDoStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionElementAccess.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionForInStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionForOfStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionForStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionHoisting.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionIfStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionNestedLoops.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionNewExpressions.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionObjectLiterals.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionPropertyAccess.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionReturnStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionSwitchStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionTryStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionWhileStatements.ts
../TypeScript/tests//cases/compiler/es5-asyncFunctionWithStatements.ts
../TypeScript/tests//cases/compiler/es5-commonjs.ts
../TypeScript/tests//cases/compiler/es5-commonjs2.ts
../TypeScript/tests//cases/compiler/es5-commonjs3.ts
../TypeScript/tests//cases/compiler/es5-commonjs4.ts
../TypeScript/tests//cases/compiler/es5-commonjs5.ts
../TypeScript/tests//cases/compiler/es5-commonjs6.ts
../TypeScript/tests//cases/compiler/es5-commonjs7.ts
../TypeScript/tests//cases/compiler/es5-commonjs8.ts
../TypeScript/tests//cases/compiler/es5-declaration-amd.ts
../TypeScript/tests//cases/compiler/es5-importHelpersAsyncFunctions.ts
../TypeScript/tests//cases/compiler/es5-oldStyleOctalLiteralInEnums.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,13 +14,4 @@
"type": "Identifier",
"name": "x"
- },
- "initializer": {
- "type": "UnaryExpression",
- "operator": "-",
- "prefix": true,
- "argument": {
- "type": "Literal",
- "value": 1
- }
}
},
@@ -30,8 +21,4 @@
"type": "Identifier",
"name": "y"
- },
- "initializer": {
- "type": "Literal",
- "value": 2
}
}
Index:
===================================================================
---
+++
@@ -1,5 +1,2 @@
// @target: ES5
-enum E {
- x = -01,
- y = 02,
-}
\ No newline at end of file
+enum E { x, y }
../TypeScript/tests//cases/compiler/es5-souremap-amd.ts
../TypeScript/tests//cases/compiler/es5-system.ts
../TypeScript/tests//cases/compiler/es5-system2.ts
../TypeScript/tests//cases/compiler/es5-umd.ts
../TypeScript/tests//cases/compiler/es5-umd2.ts
../TypeScript/tests//cases/compiler/es5-umd3.ts
../TypeScript/tests//cases/compiler/es5-umd4.ts
../TypeScript/tests//cases/compiler/es5andes6module.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultClassDeclaration.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultClassDeclaration2.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultClassDeclaration3.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultClassDeclaration4.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -92,5 +92,7 @@
"implements": [],
"decorators": []
- }
+ },
+ "specifiers": [],
+ "source": null
},
{
Index:
===================================================================
---
+++
@@ -4,13 +4,7 @@
declare module "foo" {
- export var before: C;
-
- export default class C {
- method(): C;
- }
-
- export var after: C;
-
- export var t: typeof C;
+ export var before: C;
+ export class C {
+ method(): C;
+ }export var after: C;export var t: typeof C;
}
-
../TypeScript/tests//cases/compiler/es5ExportDefaultExpression.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultFunctionDeclaration.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultFunctionDeclaration2.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultFunctionDeclaration3.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultFunctionDeclaration4.ts
../TypeScript/tests//cases/compiler/es5ExportDefaultFunctionDeclaration4.ts: { index: 154,
lineNumber: 7,
column: 38,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/es5ExportDefaultIdentifier.ts
../TypeScript/tests//cases/compiler/es5ExportEquals.ts
../TypeScript/tests//cases/compiler/es5ExportEqualsDts.ts
../TypeScript/tests//cases/compiler/es5ModuleInternalNamedImports.ts
../TypeScript/tests//cases/compiler/es5ModuleWithModuleGenAmd.ts
../TypeScript/tests//cases/compiler/es5ModuleWithModuleGenCommonjs.ts
../TypeScript/tests//cases/compiler/es5ModuleWithoutModuleGenTarget.ts
../TypeScript/tests//cases/compiler/es6-amd.ts
../TypeScript/tests//cases/compiler/es6-declaration-amd.ts
../TypeScript/tests//cases/compiler/es6-sourcemap-amd.ts
../TypeScript/tests//cases/compiler/es6-umd.ts
../TypeScript/tests//cases/compiler/es6-umd2.ts
../TypeScript/tests//cases/compiler/es6ClassSuperCodegenBug.ts
../TypeScript/tests//cases/compiler/es6ClassTest.ts
../TypeScript/tests//cases/compiler/es6ClassTest2.ts
../TypeScript/tests//cases/compiler/es6ClassTest2.ts: { index: 398,
lineNumber: 20,
column: 23,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/es6ClassTest3.ts
../TypeScript/tests//cases/compiler/es6ClassTest4.ts
../TypeScript/tests//cases/compiler/es6ClassTest5.ts
../TypeScript/tests//cases/compiler/es6ClassTest7.ts
../TypeScript/tests//cases/compiler/es6ClassTest8.ts
../TypeScript/tests//cases/compiler/es6ClassTest9.ts
../TypeScript/tests//cases/compiler/es6ClassTest9.ts: { index: 17,
lineNumber: 1,
column: 17,
message: '\'{\' expected.' }
../TypeScript/tests//cases/compiler/es6DeclOrdering.ts
../TypeScript/tests//cases/compiler/es6ExportAll.ts
../TypeScript/tests//cases/compiler/es6ExportAllInEs5.ts
../TypeScript/tests//cases/compiler/es6ExportAssignment.ts
../TypeScript/tests//cases/compiler/es6ExportAssignment2.ts
../TypeScript/tests//cases/compiler/es6ExportAssignment3.ts
../TypeScript/tests//cases/compiler/es6ExportAssignment4.ts
../TypeScript/tests//cases/compiler/es6ExportClause.ts
../TypeScript/tests//cases/compiler/es6ExportClauseInEs5.ts
../TypeScript/tests//cases/compiler/es6ExportClauseWithAssignmentInEs5.ts
../TypeScript/tests//cases/compiler/es6ExportClauseWithoutModuleSpecifier.ts
../TypeScript/tests//cases/compiler/es6ExportClauseWithoutModuleSpecifierInEs5.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultClassDeclaration.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultClassDeclaration2.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultExpression.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultFunctionDeclaration.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultFunctionDeclaration2.ts
../TypeScript/tests//cases/compiler/es6ExportDefaultIdentifier.ts
../TypeScript/tests//cases/compiler/es6ExportEquals.ts
../TypeScript/tests//cases/compiler/es6ExportEqualsInterop.ts
../TypeScript/tests//cases/compiler/es6ExportEqualsInterop.ts: { index: 960,
lineNumber: 54,
column: 17,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/es6ImportDefaultBinding.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingAmd.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingDts.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1WithExport.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts1.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportWithExport.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1InEs5.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1WithExport.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingDts1.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingWithExport.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingMergeErrors.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingNoDefaultProperty.ts
../TypeScript/tests//cases/compiler/es6ImportDefaultBindingWithExport.ts
../TypeScript/tests//cases/compiler/es6ImportEqualsDeclaration.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,7 +3,5 @@
// @filename: server.ts
var a = 10;
-export default a;
+export default a; // @filename: client.ts
-
-import // @filename: client.ts
-a = require("server");
+import a = require("server");
../TypeScript/tests//cases/compiler/es6ImportEqualsDeclaration2.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImport.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportAmd.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportDts.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportIdentifiersParsing.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportIdentifiersParsing.ts: { index: 76,
lineNumber: 4,
column: 9,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/es6ImportNamedImportInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportInExportAssignment.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportInIndirectExportAssignment.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportMergeErrors.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportNoExportMember.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportNoNamedExports.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportParsingError.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportParsingError.ts: { index: 194,
lineNumber: 9,
column: 9,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/es6ImportNamedImportWithExport.ts
../TypeScript/tests//cases/compiler/es6ImportNamedImportWithTypesAndValues.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImport.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportAmd.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportDts.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportMergeErrors.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportNoNamedExports.ts
../TypeScript/tests//cases/compiler/es6ImportNameSpaceImportWithExport.ts
../TypeScript/tests//cases/compiler/es6ImportParseErrors.ts
../TypeScript/tests//cases/compiler/es6ImportParseErrors.ts: { index: 19,
lineNumber: 3,
column: 0,
message: 'Declaration or statement expected.' }
../TypeScript/tests//cases/compiler/es6ImportWithoutFromClause.ts
../TypeScript/tests//cases/compiler/es6ImportWithoutFromClauseAmd.ts
../TypeScript/tests//cases/compiler/es6ImportWithoutFromClauseInEs5.ts
../TypeScript/tests//cases/compiler/es6ImportWithoutFromClauseNonInstantiatedModule.ts
../TypeScript/tests//cases/compiler/es6ImportWithoutFromClauseWithExport.ts
../TypeScript/tests//cases/compiler/es6MemberScoping.ts
../TypeScript/tests//cases/compiler/es6Module.ts
../TypeScript/tests//cases/compiler/es6ModuleClassDeclaration.ts
../TypeScript/tests//cases/compiler/es6ModuleConst.ts
../TypeScript/tests//cases/compiler/es6ModuleConstEnumDeclaration.ts
../TypeScript/tests//cases/compiler/es6ModuleConstEnumDeclaration.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/es6ModuleConstEnumDeclaration2.ts
../TypeScript/tests//cases/compiler/es6ModuleConstEnumDeclaration2.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/es6ModuleEnumDeclaration.ts
../TypeScript/tests//cases/compiler/es6ModuleFunctionDeclaration.ts
../TypeScript/tests//cases/compiler/es6ModuleInternalImport.ts
../TypeScript/tests//cases/compiler/es6ModuleInternalNamedImports.ts
../TypeScript/tests//cases/compiler/es6ModuleInternalNamedImports2.ts
../TypeScript/tests//cases/compiler/es6modulekind.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES2015Target.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -11,5 +11,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export class D {
static s = 0;
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target10.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target11.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export default class C {
static x() {
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target12.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -77,8 +77,4 @@
"type": "Identifier",
"name": "w"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
}
@@ -102,8 +98,4 @@
"type": "Identifier",
"name": "x"
- },
- "initializer": {
- "type": "Literal",
- "value": 2
}
}
Index:
===================================================================
---
+++
@@ -2,38 +2,33 @@
// @module: es2015
-export class C {
-}
+export class C {}
-export namespace C {
- export const x = 1;
+export module C {
+ export const x = 1;
}
-export enum E {
- w = 1
-}
+export enum E { w }
-export enum E {
- x = 2
-}
+export enum E { x }
-export namespace E {
- export const y = 1;
+export module E {
+ export const y = 1;
}
-export namespace E {
- export const z = 1;
+export module E {
+ export const z = 1;
}
-export namespace N {
+export module N {
+
}
\ No newline at end of file
-export namespace N {
- export const x = 1;
+export module N {
+ export const x = 1;
}
-export function F() {
+export function F() {}
+
+export module F {
+ export const x = 1;
}
-
-export namespace F {
- export const x = 1;
-}
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target2.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target3.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
declare function foo(...args: any[]): any
-foo
+foo;
export default class D {
static s = 0;
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target4.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target5.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target5.ts: Error: unknown type: "TSConstKeyword"
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2352:13)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printTypeScriptModifiers (/Users/despairblue/git/prettier/src/printer.js:2969:20)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:2228:20)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target6.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target7.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target8.ts
../TypeScript/tests//cases/compiler/es6modulekindWithES5Target9.ts
../TypeScript/tests//cases/compiler/es6ModuleLet.ts
../TypeScript/tests//cases/compiler/es6ModuleModuleDeclaration.ts
../TypeScript/tests//cases/compiler/es6ModuleVariableStatement.ts
../TypeScript/tests//cases/compiler/es6ModuleWithModuleGenTargetAmd.ts
../TypeScript/tests//cases/compiler/es6ModuleWithModuleGenTargetCommonjs.ts
../TypeScript/tests//cases/compiler/es6UseOfTopLevelRequire.ts
../TypeScript/tests//cases/compiler/escapedIdentifiers.ts
../TypeScript/tests//cases/compiler/escapedIdentifiers.ts: { index: 1093,
lineNumber: 63,
column: 50,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/escapedReservedCompilerNamedIdentifier.ts
../TypeScript/tests//cases/compiler/evalAfter0.ts
../TypeScript/tests//cases/compiler/excessPropertyCheckWithEmptyObject.ts
../TypeScript/tests//cases/compiler/excessPropertyErrorForFunctionTypes.ts
../TypeScript/tests//cases/compiler/excessPropertyErrorsSuppressed.ts
../TypeScript/tests//cases/compiler/exhaustiveSwitchWithWideningLiteralTypes.ts
../TypeScript/tests//cases/compiler/explicitAnyAfterSpreadNoImplicitAnyError.ts
../TypeScript/tests//cases/compiler/exportAlreadySeen.ts
../TypeScript/tests//cases/compiler/exportAlreadySeen.ts: { index: 203,
lineNumber: 10,
column: 35,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportArrayBindingPattern.ts
../TypeScript/tests//cases/compiler/exportAsNamespace.d.ts
../TypeScript/tests//cases/compiler/exportAssignClassAndModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -7,9 +7,8 @@
export interface Bar {}
}
-export default Foo;
+export default Foo; // @Filename: exportAssignClassAndModule_1.ts
-import // @Filename: exportAssignClassAndModule_1.ts
-///<reference path='exportAssignClassAndModule_0.ts'/>
+import ///<reference path='exportAssignClassAndModule_0.ts'/>
Foo = require("./exportAssignClassAndModule_0");
var z: Foo.Bar;
../TypeScript/tests//cases/compiler/exportAssignedTypeAsTypeAnnotation.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,8 @@
foo: string
}
-export default x;
+export default x; // @Filename: exportAssignedTypeAsTypeAnnotation_1.ts
-import // @Filename: exportAssignedTypeAsTypeAnnotation_1.ts
-///<reference path='exportAssignedTypeAsTypeAnnotation_0.ts'/>
+import ///<reference path='exportAssignedTypeAsTypeAnnotation_0.ts'/>
test = require("exportAssignedTypeAsTypeAnnotation_0");
var t2: test; // should not raise a 'container type' error
../TypeScript/tests//cases/compiler/ExportAssignment7.ts
../TypeScript/tests//cases/compiler/ExportAssignment8.ts
../TypeScript/tests//cases/compiler/exportAssignmentClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,7 @@
}
-export default C;
+export default C; // @Filename: exportAssignmentClass_B.ts
-
-import // @Filename: exportAssignmentClass_B.ts
-D = require("exportAssignmentClass_A");
+import D = require("exportAssignmentClass_A");
var d = new D();
var x = d.p;
../TypeScript/tests//cases/compiler/exportAssignmentEnum.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,7 @@
enum E { A, B, C }
-export default E;
+export default E; // @Filename: exportAssignmentEnum_B.ts
-
-import // @Filename: exportAssignmentEnum_B.ts
-EnumE = require("./exportAssignmentEnum_A");
+import EnumE = require("./exportAssignmentEnum_A");
var a = EnumE.A;
var b = EnumE.B;
../TypeScript/tests//cases/compiler/exportAssignmentError.ts
../TypeScript/tests//cases/compiler/exportAssignmentFunction.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,8 +5,6 @@
}
-export default foo;
+export default foo; // @Filename: exportAssignmentFunction_B.ts
-
-import // @Filename: exportAssignmentFunction_B.ts
-fooFunc = require("exportAssignmentFunction_A");
+import fooFunc = require("exportAssignmentFunction_A");
var n: number = fooFunc();
../TypeScript/tests//cases/compiler/exportAssignmentInterface.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,7 @@
}
-export default A;
+export default A; // @Filename: exportAssignmentInterface_B.ts
-
-import // @Filename: exportAssignmentInterface_B.ts
-I1 = require("exportAssignmentInterface_A");
+import I1 = require("exportAssignmentInterface_A");
var i: I1;
../TypeScript/tests//cases/compiler/exportAssignmentInternalModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,8 +5,6 @@
}
-export default M;
+export default M; // @Filename: exportAssignmentInternalModule_B.ts
-
-import // @Filename: exportAssignmentInternalModule_B.ts
-modM = require("exportAssignmentInternalModule_A");
+import modM = require("exportAssignmentInternalModule_A");
var n: number = modM.x;
../TypeScript/tests//cases/compiler/exportAssignmentOfDeclaredExternalModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,8 @@
(): number // a 0 arg call signature
}
-export default Sammy;
+export default Sammy; // @Filename: exportAssignmentOfDeclaredExternalModule_1.ts
-import // @Filename: exportAssignmentOfDeclaredExternalModule_1.ts
-///<reference path='exportAssignmentOfDeclaredExternalModule_0.ts'/>
+import ///<reference path='exportAssignmentOfDeclaredExternalModule_0.ts'/>
Sammy = require("./exportAssignmentOfDeclaredExternalModule_0");
var x = new Sammy(); // error to use as constructor as there is not constructor symbol
../TypeScript/tests//cases/compiler/exportAssignmentOfGenericType1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
class T<X> {
foo: X;
-}
+} // @Filename: exportAssignmentOfGenericType1_1.ts
-import // @Filename: exportAssignmentOfGenericType1_1.ts
-///<reference path='exportAssignmentOfGenericType1_0.ts'/>
+import ///<reference path='exportAssignmentOfGenericType1_0.ts'/>
q = require("exportAssignmentOfGenericType1_0");
class M extends q<string> {}
../TypeScript/tests//cases/compiler/exportAssignmentVariable.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,8 +3,6 @@
var x = 0;
-export default x;
+export default x; // @Filename: exportAssignmentVariable_B.ts
-
-import // @Filename: exportAssignmentVariable_B.ts
-y = require("./exportAssignmentVariable_A");
+import y = require("./exportAssignmentVariable_A");
var n: number = y;
../TypeScript/tests//cases/compiler/exportAssignmentWithDeclareAndExportModifiers.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithDeclareModifier.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithExportModifier.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithExports.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithImportStatementPrivacyError.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithoutIdentifier1.ts
../TypeScript/tests//cases/compiler/exportAssignmentWithPrivacyError.ts
../TypeScript/tests//cases/compiler/exportAssignValueAndType.ts
../TypeScript/tests//cases/compiler/exportClassExtendingIntersection.ts
../TypeScript/tests//cases/compiler/exportDeclarationInInternalModule.ts
../TypeScript/tests//cases/compiler/exportDeclarationsInAmbientNamespaces.ts
../TypeScript/tests//cases/compiler/exportDeclarationsInAmbientNamespaces.ts: { index: 75,
lineNumber: 2,
column: 55,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportDeclarationsInAmbientNamespaces2.ts
../TypeScript/tests//cases/compiler/exportDeclarationWithModuleSpecifierNameOnNextLine1.ts
../TypeScript/tests//cases/compiler/exportDeclareClass1.ts
../TypeScript/tests//cases/compiler/exportDefaultAbstractClass.ts
../TypeScript/tests//cases/compiler/exportDefaultAsyncFunction.ts
../TypeScript/tests//cases/compiler/exportDefaultAsyncFunction2.ts
../TypeScript/tests//cases/compiler/exportDefaultForNonInstantiatedModule.ts
../TypeScript/tests//cases/compiler/exportDefaultProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,60 +14,65 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "bar"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "kind": "type",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "X"
- },
- "init": {
- "type": "TSNumberKeyword"
- }
- }
- ]
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "bar"
},
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "X",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "kind": "type",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "init": {
"type": "TSNumberKeyword"
}
}
- },
- "init": null
- }
- ],
- "kind": "const"
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "X",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ }
+ },
+ "init": null
+ }
+ ],
+ "kind": "const"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -2,21 +2,24 @@
// @Filename: declarations.d.ts
-declare namespace foo.bar {
- export type X = number;
- export const X: number;
+declare module foo {
+ module bar { export type X = number;export const X: number; }
}
declare module "foobar" {
- export default foo.bar;
+ export default foo.bar;
}
declare module "foobarx" {
- export default foo.bar.X;
+ export default foo.bar.X;
}
// @Filename: a.ts
-namespace A {
- export class B { constructor(b: number) {} }
- export namespace B { export const b: number = 0; }
+module A {
+
+ export class B {
+ constructor(b: number) {}
+ }export module B {
+ export const b: number = 0;
+ }
}
export default A.B;
../TypeScript/tests//cases/compiler/exportDefaultProperty2.ts
../TypeScript/tests//cases/compiler/exportDefaultVariable.ts
../TypeScript/tests//cases/compiler/exportedBlockScopedDeclarations.ts
../TypeScript/tests//cases/compiler/exportedInterfaceInaccessibleInCallbackInModule.ts
../TypeScript/tests//cases/compiler/exportedVariable1.ts
../TypeScript/tests//cases/compiler/exportEqualCallable.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,8 @@
(): any
};
-export default server;
+export default server; // @Filename: exportEqualCallable_1.ts
-import // @Filename: exportEqualCallable_1.ts
-///<reference path='exportEqualCallable_0.ts'/>
+import ///<reference path='exportEqualCallable_0.ts'/>
connect = require("exportEqualCallable_0");
connect();
../TypeScript/tests//cases/compiler/exportEqualErrorType.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,9 +12,8 @@
foo: Date
};
-export default server;
+export default server; // @Filename: exportEqualErrorType_1.ts
-import // @Filename: exportEqualErrorType_1.ts
-///<reference path='exportEqualErrorType_0.ts'/>
+import ///<reference path='exportEqualErrorType_0.ts'/>
connect = require("exportEqualErrorType_0");
connect().use(connect.static("foo")); // Error 1 The property 'static' does not exist on value of type ''.
../TypeScript/tests//cases/compiler/exportEqualMemberMissing.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,9 +12,8 @@
foo: Date
};
-export default server;
+export default server; // @Filename: exportEqualMemberMissing_1.ts
-import // @Filename: exportEqualMemberMissing_1.ts
-///<reference path='exportEqualMemberMissing_0.ts'/>
+import ///<reference path='exportEqualMemberMissing_0.ts'/>
connect = require("./exportEqualMemberMissing_0");
connect().use(connect.static("foo")); // Error 1 The property 'static' does not exist on value of type ''.
../TypeScript/tests//cases/compiler/exportEqualNamespaces.ts
../TypeScript/tests//cases/compiler/exportEqualsAmd.ts
../TypeScript/tests//cases/compiler/exportEqualsCommonJs.ts
../TypeScript/tests//cases/compiler/exportEqualsDefaultProperty.ts
../TypeScript/tests//cases/compiler/exportEqualsOfModule.ts
../TypeScript/tests//cases/compiler/exportEqualsOfModule.ts: { index: 418,
lineNumber: 16,
column: 11,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportEqualsProperty.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,60 +14,65 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "bar"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "kind": "type",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "X"
- },
- "init": {
- "type": "TSNumberKeyword"
- }
- }
- ]
- },
- "specifiers": [],
- "source": null
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "bar"
},
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "VariableDeclaration",
- "declarations": [
- {
- "type": "VariableDeclarator",
- "id": {
- "type": "Identifier",
- "name": "X",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "kind": "type",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "X"
+ },
+ "init": {
"type": "TSNumberKeyword"
}
}
- },
- "init": null
- }
- ],
- "kind": "const"
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "specifiers": [],
+ "source": null
+ },
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "VariableDeclaration",
+ "declarations": [
+ {
+ "type": "VariableDeclarator",
+ "id": {
+ "type": "Identifier",
+ "name": "X",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ }
+ },
+ "init": null
+ }
+ ],
+ "kind": "const"
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
Index:
===================================================================
---
+++
@@ -2,26 +2,29 @@
// @Filename: declarations.d.ts
-declare namespace foo.bar {
- export type X = number;
- export const X: number;
+declare module foo {
+ module bar { export type X = number;export const X: number; }
}
declare module "foobar" {
- export = foo.bar;
+ export default foo.bar;
}
declare module "foobarx" {
- export = foo.bar.X;
+ export default foo.bar.X;
}
// @Filename: a.ts
-namespace A {
- export class B { constructor(b: number) {} }
- export namespace B { export const b: number = 0; }
+module A {
+
+ export class B {
+ constructor(b: number) {}
+ }export module B {
+ export const b: number = 0;
+ }
}
-export = A.B;
+export default A.B;
// @Filename: b.ts
-export = "foo".length;
+export default "foo".length;
// @Filename: index.ts
../TypeScript/tests//cases/compiler/exportEqualsProperty2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,8 +9,6 @@
}
-export default C.B;
+export default C.B; // @Filename: b.ts
-
-import // @Filename: b.ts
-B = require("./a");
+import B = require("./a");
const x: B = { c: B };
../TypeScript/tests//cases/compiler/exportEqualsUmd.ts
../TypeScript/tests//cases/compiler/exportImport.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,12 +6,9 @@
class Widget1 {
name = "one";
-}
+} // @Filename: exporter.ts
-export import // @Filename: exporter.ts
-w = require("./w1");
-
-import // @Filename: consumer.ts
-e = require("./exporter");
+export import w = require("./w1"); // @Filename: consumer.ts
+import e = require("./exporter");
export function w(): e.w {
// Should be OK
../TypeScript/tests//cases/compiler/exportImportAndClodule.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -321,12 +321,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "M"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "D"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,19 +1,18 @@
module K {
- export class L {
- constructor(public name: string) { }
+
+ export class L {
+ constructor(public name: string) {}
+ }export module L {
+ export var y = 12;export interface Point {
+ x: number,
+ y: number
}
- export module L {
- export var y = 12;
- export interface Point {
- x: number;
- y: number;
- }
- }
+ }
\ No newline at end of file
}
module M {
- export import D = K.L;
+ export import D = K.L;
}
var o: { name: string };
-var o = new M.D('Hello');
-var p: { x: number; y: number; }
-var p: M.D.Point;
+var o = new M.D("Hello");
+var p: { x: number, y: number };
+var p: undefined.Point;
../TypeScript/tests//cases/compiler/exportImportMultipleFiles.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,13 +3,9 @@
export function add(a, b) {
return a + b;
-}
+} // @Filename: exportImportMultipleFiles_library.ts
+export import math = require("exportImportMultipleFiles_math");
+math.add(3, 4); // OK // @Filename: exportImportMultipleFiles_userCode.ts
-export import // @Filename: exportImportMultipleFiles_library.ts
-math = require("exportImportMultipleFiles_math");
-math.add(3, 4); // OK
-
-
-import // @Filename: exportImportMultipleFiles_userCode.ts
-lib = require("./exportImportMultipleFiles_library");
+import lib = require("./exportImportMultipleFiles_library");
lib.math.add(3, 4); // Shouldnt be error
../TypeScript/tests//cases/compiler/exportImportNonInstantiatedModule.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -85,12 +85,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "B"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "A1"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,10 +1,9 @@
module A {
- export interface I { x: number }
+ export interface I { x: number }
}
module B {
- export import A1 = A
-
+ export import A1 = A;
}
\ No newline at end of file
-var x: B.A1.I = { x: 1 };
+var x: undefined.I = { x: 1 };
../TypeScript/tests//cases/compiler/exportImportNonInstantiatedModule2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,12 +4,9 @@
// @Filename: w1.ts
export default Widget1;
-interface Widget1 { name: string }
+interface Widget1 { name: string } // @Filename: exporter.ts
-export import // @Filename: exporter.ts
-w = require("./w1");
-
-import // @Filename: consumer.ts
-e = require("./exporter");
+export import w = require("./w1"); // @Filename: consumer.ts
+import e = require("./exporter");
export function w(): e.w {
// Should be OK
../TypeScript/tests//cases/compiler/exportInFunction.ts
../TypeScript/tests//cases/compiler/exportInFunction.ts: { index: 33,
lineNumber: 3,
column: 0,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/exportingContainingVisibleType.ts
../TypeScript/tests//cases/compiler/exportPrivateType.ts
../TypeScript/tests//cases/compiler/exportRedeclarationTypeAliases.ts
../TypeScript/tests//cases/compiler/exportSameNameFuncVar.ts
../TypeScript/tests//cases/compiler/exportsInAmbientModules1.ts
../TypeScript/tests//cases/compiler/exportsInAmbientModules2.ts
../TypeScript/tests//cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts
../TypeScript/tests//cases/compiler/exportSpecifierAndExportedMemberDeclaration.ts: { index: 80,
lineNumber: 4,
column: 16,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts
../TypeScript/tests//cases/compiler/exportSpecifierAndLocalMemberDeclaration.ts: { index: 65,
lineNumber: 2,
column: 42,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportSpecifierForAGlobal.ts
../TypeScript/tests//cases/compiler/exportSpecifierReferencingOuterDeclaration1.ts
../TypeScript/tests//cases/compiler/exportSpecifierReferencingOuterDeclaration2.ts
../TypeScript/tests//cases/compiler/exportSpecifierReferencingOuterDeclaration3.ts
../TypeScript/tests//cases/compiler/exportSpecifierReferencingOuterDeclaration3.ts: { index: 169,
lineNumber: 7,
column: 45,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/exportSpecifierReferencingOuterDeclaration4.ts
../TypeScript/tests//cases/compiler/exportStarForValues.ts
../TypeScript/tests//cases/compiler/exportStarForValues10.ts
../TypeScript/tests//cases/compiler/exportStarForValues2.ts
../TypeScript/tests//cases/compiler/exportStarForValues3.ts
../TypeScript/tests//cases/compiler/exportStarForValues4.ts
../TypeScript/tests//cases/compiler/exportStarForValues5.ts
../TypeScript/tests//cases/compiler/exportStarForValues6.ts
../TypeScript/tests//cases/compiler/exportStarForValues7.ts
../TypeScript/tests//cases/compiler/exportStarForValues8.ts
../TypeScript/tests//cases/compiler/exportStarForValues9.ts
../TypeScript/tests//cases/compiler/exportStarForValuesInSystem.ts
../TypeScript/tests//cases/compiler/exportStarFromEmptyModule.ts
../TypeScript/tests//cases/compiler/exportToString.ts
../TypeScript/tests//cases/compiler/exportVisibility.ts
../TypeScript/tests//cases/compiler/expr.ts
../TypeScript/tests//cases/compiler/extBaseClass1.ts
../TypeScript/tests//cases/compiler/extBaseClass2.ts
../TypeScript/tests//cases/compiler/extendAndImplementTheSameBaseType.ts
../TypeScript/tests//cases/compiler/extendAndImplementTheSameBaseType2.ts
../TypeScript/tests//cases/compiler/extendArray.ts
../TypeScript/tests//cases/compiler/extendArray.ts: { index: 233,
lineNumber: 14,
column: 4,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/extendBaseClassBeforeItsDeclared.ts
../TypeScript/tests//cases/compiler/extendConstructSignatureInInterface.ts
../TypeScript/tests//cases/compiler/extendedInterfaceGenericType.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -110,14 +110,5 @@
"type": "Identifier",
"name": "Alpha"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
interface Alpha<T> {
- takesArgOfT(arg: T): Alpha<T>;
- makeBetaOfNumber(): Beta<number>;
+ takesArgOfT(arg: T): Alpha<T>,
+ makeBetaOfNumber(): Beta<number>
}
-interface Beta<T> extends Alpha<T> {
-}
+interface Beta<T> extends Alpha {}
var alpha: Alpha<number>;
../TypeScript/tests//cases/compiler/extendedInterfacesWithDuplicateTypeParameters.ts
../TypeScript/tests//cases/compiler/extendedInterfacesWithDuplicateTypeParameters.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
../TypeScript/tests//cases/compiler/extendFromAny.ts
../TypeScript/tests//cases/compiler/extendGenericArray.ts
../TypeScript/tests//cases/compiler/extendGenericArray2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -62,14 +62,5 @@
"type": "Identifier",
"name": "IFoo"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,8 +1,8 @@
interface IFoo<T> {
- x: T;
+ x: T
}
-interface Array<T> extends IFoo<T> { }
+interface Array<T> extends IFoo {}
\ No newline at end of file
var arr: string[] = [];
-var y: number = arr.x;
+var y: number = arr.x;
../TypeScript/tests//cases/compiler/extendingClassFromAliasAndUsageInIndexer.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,23 +3,20 @@
export class Model {
public someData: string;
-}
+} // @Filename: extendingClassFromAliasAndUsageInIndexer_moduleA.ts
-import // @Filename: extendingClassFromAliasAndUsageInIndexer_moduleA.ts
-Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
+import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
export class VisualizationModel extends Backbone.Model {
// interesting stuff here
-}
+} // @Filename: extendingClassFromAliasAndUsageInIndexer_moduleB.ts
-import // @Filename: extendingClassFromAliasAndUsageInIndexer_moduleB.ts
-Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
+import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
export class VisualizationModel extends Backbone.Model {
// different interesting stuff here
-}
+} // @Filename: extendingClassFromAliasAndUsageInIndexer_main.ts
-import // @Filename: extendingClassFromAliasAndUsageInIndexer_main.ts
-Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
+import Backbone = require("./extendingClassFromAliasAndUsageInIndexer_backbone");
import moduleA = require("./extendingClassFromAliasAndUsageInIndexer_moduleA");
import moduleB = require("./extendingClassFromAliasAndUsageInIndexer_moduleB");
../TypeScript/tests//cases/compiler/extendNonClassSymbol1.ts
../TypeScript/tests//cases/compiler/extendNonClassSymbol2.ts
../TypeScript/tests//cases/compiler/extendPrivateConstructorClass.ts
../TypeScript/tests//cases/compiler/extendsClauseAlreadySeen.ts
../TypeScript/tests//cases/compiler/extendsClauseAlreadySeen2.ts
../TypeScript/tests//cases/compiler/extendsUntypedModule.ts
../TypeScript/tests//cases/compiler/extendsUntypedModule.ts: { index: 194,
lineNumber: 6,
column: 5,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/extension.ts
../TypeScript/tests//cases/compiler/extension.ts: { index: 160,
lineNumber: 16,
column: 4,
message: 'Declaration or statement expected.' }
../TypeScript/tests//cases/compiler/externalModuleAssignToVar.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -15,9 +15,8 @@
baz: string;
}
-export default C;
+export default C; // @Filename: externalModuleAssignToVar_core.ts
-import // @Filename: externalModuleAssignToVar_core.ts
-///<reference path='externalModuleAssignToVar_core_require.ts'/>
+import ///<reference path='externalModuleAssignToVar_core_require.ts'/>
ext = require("externalModuleAssignToVar_core_require");
var y1: { C: new () => ext.C } = ext;
../TypeScript/tests//cases/compiler/externalModuleExportingGenericClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,9 +5,7 @@
foo: T;
}
-export default C;
+export default C; // @Filename: externalModuleExportingGenericClass_file1.ts
-
-import // @Filename: externalModuleExportingGenericClass_file1.ts
-a = require("./externalModuleExportingGenericClass_file0");
+import a = require("./externalModuleExportingGenericClass_file0");
var v: a; // this should report error
var v2: any = new a().foo;
../TypeScript/tests//cases/compiler/externalModuleImmutableBindings.ts
../TypeScript/tests//cases/compiler/externalModuleQualification.ts
../TypeScript/tests//cases/compiler/externalModuleReferenceDoubleUnderscore1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -87,8 +87,4 @@
"type": "Identifier",
"name": "Second"
- },
- "initializer": {
- "type": "Literal",
- "value": 0
}
},
@@ -98,8 +94,4 @@
"type": "Identifier",
"name": "Minute"
- },
- "initializer": {
- "type": "Literal",
- "value": 1
}
},
@@ -109,8 +101,4 @@
"type": "Identifier",
"name": "Hour"
- },
- "initializer": {
- "type": "Literal",
- "value": 2
}
},
@@ -120,8 +108,4 @@
"type": "Identifier",
"name": "Day"
- },
- "initializer": {
- "type": "Literal",
- "value": 3
}
},
@@ -131,8 +115,4 @@
"type": "Identifier",
"name": "Week"
- },
- "initializer": {
- "type": "Literal",
- "value": 4
}
},
@@ -142,8 +122,4 @@
"type": "Identifier",
"name": "Month"
- },
- "initializer": {
- "type": "Literal",
- "value": 5
}
},
@@ -153,8 +129,4 @@
"type": "Identifier",
"name": "Year"
- },
- "initializer": {
- "type": "Literal",
- "value": 6
}
}
Index:
===================================================================
---
+++
@@ -1,16 +1,8 @@
-declare module 'timezonecomplete' {
- import basics = require("__timezonecomplete/basics");
- export import TimeUnit = basics.TimeUnit;
+declare module "timezonecomplete" {
+ import basics = require("__timezonecomplete/basics");
+ export import TimeUnit = basics.TimeUnit;
}
-declare module '__timezonecomplete/basics' {
- export enum TimeUnit {
- Second = 0,
- Minute = 1,
- Hour = 2,
- Day = 3,
- Week = 4,
- Month = 5,
\ No newline at end of file
- Year = 6,
- }
-}
+declare module "__timezonecomplete/basics" {
+ export enum TimeUnit { Second, Minute, Hour, Day, Week, Month, Year }
+}
../TypeScript/tests//cases/compiler/externalModuleReferenceOfImportDeclarationWithExportModifier.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
//@module: amd
// @Filename: externalModuleReferenceOfImportDeclarationWithExportModifier_0.ts
-export function foo() {}
+export function foo() {} // @Filename: externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts
-export import // @Filename: externalModuleReferenceOfImportDeclarationWithExportModifier_1.ts
-file1 = require("externalModuleReferenceOfImportDeclarationWithExportModifier_0");
+export import file1 = require("externalModuleReferenceOfImportDeclarationWithExportModifier_0");
file1.foo();
../TypeScript/tests//cases/compiler/externalModuleRefernceResolutionOrderInImportDeclaration.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -6,9 +6,8 @@
declare module "externalModuleRefernceResolutionOrderInImportDeclaration_file1" {
export function bar()
-}
+} // @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file3.ts
-import // @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file3.ts
-///<reference path='externalModuleRefernceResolutionOrderInImportDeclaration_file2.ts'/>
+import ///<reference path='externalModuleRefernceResolutionOrderInImportDeclaration_file2.ts'/>
file1 = require("./externalModuleRefernceResolutionOrderInImportDeclaration_file1");
file1.foo();
../TypeScript/tests//cases/compiler/externalModuleResolution.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,8 +10,6 @@
export var Y = 1;
}
-export default M2;
+export default M2; // @Filename: consumer.ts
-
-import // @Filename: consumer.ts
-x = require("./foo");
+import x = require("./foo");
x.Y; // .ts should be picked
../TypeScript/tests//cases/compiler/externalModuleResolution2.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -10,8 +10,6 @@
export var Y: number;
}
-export default M1;
+export default M1; // @Filename: consumer.ts
-
-import // @Filename: consumer.ts
-x = require("./foo");
+import x = require("./foo");
x.X; // .ts should be picked
../TypeScript/tests//cases/compiler/externalModuleWithoutCompilerFlag1.ts
../TypeScript/tests//cases/compiler/externFunc.ts
../TypeScript/tests//cases/compiler/externModule.ts
../TypeScript/tests//cases/compiler/externModule.ts: { index: 8, lineNumber: 1, column: 8, message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/externModuleClobber.ts
../TypeScript/tests//cases/compiler/externSemantics.ts
../TypeScript/tests//cases/compiler/externSyntax.ts
../TypeScript/tests//cases/compiler/fallbackToBindingPatternForTypeInference.ts
../TypeScript/tests//cases/compiler/fallFromLastCase1.ts
../TypeScript/tests//cases/compiler/fallFromLastCase2.ts
../TypeScript/tests//cases/compiler/fatArrowfunctionAsType.ts
../TypeScript/tests//cases/compiler/fatarrowfunctions.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsErrors.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsErrors.ts: { index: 41,
lineNumber: 2,
column: 7,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/fatarrowfunctionsInFunctionParameterDefaults.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsInFunctions.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgs.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgs.ts: { index: 2044,
lineNumber: 88,
column: 22,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors2.ts: { index: 22,
lineNumber: 1,
column: 22,
message: '\';\' expected.' }
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors3.ts: { index: 4,
lineNumber: 1,
column: 4,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/fatarrowfunctionsOptionalArgsErrors4.ts
../TypeScript/tests//cases/compiler/fatArrowSelf.ts
../TypeScript/tests//cases/compiler/fieldAndGetterWithSameName.ts
../TypeScript/tests//cases/compiler/fileReferencesWithNoExtensions.ts
../TypeScript/tests//cases/compiler/filesEmittingIntoSameOutput.ts
../TypeScript/tests//cases/compiler/filesEmittingIntoSameOutputWithOutOption.ts
../TypeScript/tests//cases/compiler/fileWithNextLine1.ts
../TypeScript/tests//cases/compiler/fileWithNextLine2.ts
../TypeScript/tests//cases/compiler/fileWithNextLine3.ts
../TypeScript/tests//cases/compiler/fillInMissingTypeArgsOnConstructCalls.ts
../TypeScript/tests//cases/compiler/fixingTypeParametersRepeatedly1.ts
../TypeScript/tests//cases/compiler/fixingTypeParametersRepeatedly2.ts
../TypeScript/tests//cases/compiler/fixingTypeParametersRepeatedly3.ts
../TypeScript/tests//cases/compiler/fixTypeParameterInSignatureWithRestParameters.ts
../TypeScript/tests//cases/compiler/flowAfterFinally1.ts
../TypeScript/tests//cases/compiler/flowInFinally1.ts
../TypeScript/tests//cases/compiler/for.ts
../TypeScript/tests//cases/compiler/for.ts: { index: 392,
lineNumber: 31,
column: 5,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/forIn.ts
../TypeScript/tests//cases/compiler/forIn2.ts
../TypeScript/tests//cases/compiler/forInModule.ts
../TypeScript/tests//cases/compiler/forInStatement1.ts
../TypeScript/tests//cases/compiler/forInStatement2.ts
../TypeScript/tests//cases/compiler/forInStatement3.ts
../TypeScript/tests//cases/compiler/forInStatement4.ts
../TypeScript/tests//cases/compiler/forInStatement5.ts
../TypeScript/tests//cases/compiler/forInStatement6.ts
../TypeScript/tests//cases/compiler/forInStatement7.ts
../TypeScript/tests//cases/compiler/forOfStringConstituents.ts
../TypeScript/tests//cases/compiler/forOfTransformsExpression.ts
../TypeScript/tests//cases/compiler/forwardRefInClassProperties.ts
../TypeScript/tests//cases/compiler/forwardRefInEnum.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -14,8 +14,4 @@
"type": "Identifier",
"name": "X"
- },
- "initializer": {
- "type": "Identifier",
- "name": "Y"
}
},
@@ -25,16 +21,4 @@
"type": "Identifier",
"name": "X1"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "E1"
- },
- "property": {
- "type": "Literal",
- "value": "Y"
- },
- "computed": true
}
},
@@ -44,16 +28,4 @@
"type": "Identifier",
"name": "Y"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "E1"
- },
- "property": {
- "type": "Identifier",
- "name": "Z"
- },
- "computed": false
}
},
@@ -63,16 +35,4 @@
"type": "Identifier",
"name": "Y1"
- },
- "initializer": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "E1"
- },
- "property": {
- "type": "Literal",
- "value": "Z"
- },
- "computed": true
}
}
@@ -91,8 +51,4 @@
"type": "Identifier",
"name": "Z"
- },
- "initializer": {
- "type": "Literal",
- "value": 4
}
}
Index:
===================================================================
---
+++
@@ -1,13 +1,6 @@
-enum E1 {
- // illegal case
- // forward reference to the element of the same enum
- X = Y,
- X1 = E1["Y"],
- // forward reference to the element of the same enum
- Y = E1.Z,
- Y1 = E1["Z"]
-}
+enum E1 { X, X1, Y, Y1 }
+// illegal case
+// forward reference to the element of the same enum
+// forward reference to the element of the same enum
-enum E1 {
- Z = 4
-}
+enum E1 { Z }
../TypeScript/tests//cases/compiler/fromAsIdentifier1.ts
../TypeScript/tests//cases/compiler/fromAsIdentifier2.ts
../TypeScript/tests//cases/compiler/funcdecl.ts
../TypeScript/tests//cases/compiler/funClodule.ts
../TypeScript/tests//cases/compiler/functionAndImportNameConflict.ts
../TypeScript/tests//cases/compiler/functionAndInterfaceWithSeparateErrors.ts
../TypeScript/tests//cases/compiler/functionAndPropertyNameConflict.ts
../TypeScript/tests//cases/compiler/functionArgShadowing.ts
../TypeScript/tests//cases/compiler/functionAssignment.ts
../TypeScript/tests//cases/compiler/functionAssignmentError.ts
../TypeScript/tests//cases/compiler/functionCall1.ts
../TypeScript/tests//cases/compiler/functionCall10.ts
../TypeScript/tests//cases/compiler/functionCall11.ts
../TypeScript/tests//cases/compiler/functionCall12.ts
../TypeScript/tests//cases/compiler/functionCall13.ts
../TypeScript/tests//cases/compiler/functionCall14.ts
../TypeScript/tests//cases/compiler/functionCall15.ts
../TypeScript/tests//cases/compiler/functionCall16.ts
../TypeScript/tests//cases/compiler/functionCall17.ts
../TypeScript/tests//cases/compiler/functionCall2.ts
../TypeScript/tests//cases/compiler/functionCall3.ts
../TypeScript/tests//cases/compiler/functionCall4.ts
../TypeScript/tests//cases/compiler/functionCall5.ts
../TypeScript/tests//cases/compiler/functionCall6.ts
../TypeScript/tests//cases/compiler/functionCall7.ts
../TypeScript/tests//cases/compiler/functionCall8.ts
../TypeScript/tests//cases/compiler/functionCall9.ts
../TypeScript/tests//cases/compiler/FunctionDeclaration3.ts
../TypeScript/tests//cases/compiler/FunctionDeclaration4.ts
../TypeScript/tests//cases/compiler/FunctionDeclaration6.ts
../TypeScript/tests//cases/compiler/FunctionDeclaration7.ts
../TypeScript/tests//cases/compiler/functionDeclarationWithArgumentOfTypeFunctionTypeArray.ts
../TypeScript/tests//cases/compiler/functionDeclarationWithResolutionOfTypeNamedArguments01.ts
../TypeScript/tests//cases/compiler/functionDeclarationWithResolutionOfTypeNamedArguments01.ts: { index: 50,
lineNumber: 5,
column: 5,
message: 'JSX element \'arguments\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/functionDeclarationWithResolutionOfTypeOfSameName01.ts
../TypeScript/tests//cases/compiler/functionDeclarationWithResolutionOfTypeOfSameName01.ts: { index: 42,
lineNumber: 5,
column: 5,
message: 'JSX element \'f\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/functionExpressionAndLambdaMatchesFunction.ts
../TypeScript/tests//cases/compiler/functionExpressionInWithBlock.ts
../TypeScript/tests//cases/compiler/functionExpressionReturningItself.ts
../TypeScript/tests//cases/compiler/functionExpressionShadowedByParams.ts
../TypeScript/tests//cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts
../TypeScript/tests//cases/compiler/functionExpressionWithResolutionOfTypeNamedArguments01.ts: { index: 58,
lineNumber: 5,
column: 5,
message: 'JSX element \'arguments\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/functionExpressionWithResolutionOfTypeOfSameName01.ts
../TypeScript/tests//cases/compiler/functionExpressionWithResolutionOfTypeOfSameName01.ts: { index: 50,
lineNumber: 5,
column: 5,
message: 'JSX element \'f\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/functionExpressionWithResolutionOfTypeOfSameName02.ts
../TypeScript/tests//cases/compiler/functionInIfStatementInModule.ts
../TypeScript/tests//cases/compiler/functionLikeInParameterInitializer.ts
../TypeScript/tests//cases/compiler/functionMergedWithModule.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -53,34 +53,39 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Bar"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "f"
- },
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": []
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Bar"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ }
+ },
+ "specifiers": [],
+ "source": null
}
- },
- "specifiers": [],
- "source": null
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -92,54 +97,59 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Baz"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "TSNamespaceFunctionDeclaration",
- "id": {
- "type": "Identifier",
- "name": "g"
- },
- "generator": false,
- "expression": false,
- "async": false,
- "params": [],
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Bar"
- },
- "property": {
- "type": "Identifier",
- "name": "f"
- },
- "computed": false
- },
- "arguments": []
- }
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Baz"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "TSNamespaceFunctionDeclaration",
+ "id": {
+ "type": "Identifier",
+ "name": "g"
+ },
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "params": [],
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "Bar"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "f"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ }
+ ]
}
- ]
+ },
+ "specifiers": [],
+ "source": null
}
- },
- "specifiers": [],
- "source": null
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,14 +1,20 @@
function foo(title: string) {
- var x = 10;
+ var x = 10;
}
-module foo.Bar {
+module foo {
+ module Bar {
+
export function f() {
}
+ }
}
\ No newline at end of file
-module foo.Baz {
+module foo {
+ module Baz {
+
export function g() {
- Bar.f();
+ Bar.f();
}
-}
+ }
+}
../TypeScript/tests//cases/compiler/functionOnlyHasThrow.ts
../TypeScript/tests//cases/compiler/functionOverloadAmbiguity1.ts
../TypeScript/tests//cases/compiler/functionOverloadImplementationOfWrongName.ts
../TypeScript/tests//cases/compiler/functionOverloadImplementationOfWrongName2.ts
../TypeScript/tests//cases/compiler/functionOverloads.ts
../TypeScript/tests//cases/compiler/functionOverloads1.ts
../TypeScript/tests//cases/compiler/functionOverloads10.ts
../TypeScript/tests//cases/compiler/functionOverloads11.ts
../TypeScript/tests//cases/compiler/functionOverloads12.ts
../TypeScript/tests//cases/compiler/functionOverloads13.ts
../TypeScript/tests//cases/compiler/functionOverloads14.ts
../TypeScript/tests//cases/compiler/functionOverloads15.ts
../TypeScript/tests//cases/compiler/functionOverloads16.ts
../TypeScript/tests//cases/compiler/functionOverloads17.ts
../TypeScript/tests//cases/compiler/functionOverloads18.ts
../TypeScript/tests//cases/compiler/functionOverloads19.ts
../TypeScript/tests//cases/compiler/functionOverloads2.ts
../TypeScript/tests//cases/compiler/functionOverloads20.ts
../TypeScript/tests//cases/compiler/functionOverloads21.ts
../TypeScript/tests//cases/compiler/functionOverloads22.ts
../TypeScript/tests//cases/compiler/functionOverloads23.ts
../TypeScript/tests//cases/compiler/functionOverloads24.ts
../TypeScript/tests//cases/compiler/functionOverloads25.ts
../TypeScript/tests//cases/compiler/functionOverloads26.ts
../TypeScript/tests//cases/compiler/functionOverloads27.ts
../TypeScript/tests//cases/compiler/functionOverloads28.ts
../TypeScript/tests//cases/compiler/functionOverloads29.ts
../TypeScript/tests//cases/compiler/functionOverloads3.ts
../TypeScript/tests//cases/compiler/functionOverloads30.ts
../TypeScript/tests//cases/compiler/functionOverloads31.ts
../TypeScript/tests//cases/compiler/functionOverloads32.ts
../TypeScript/tests//cases/compiler/functionOverloads33.ts
../TypeScript/tests//cases/compiler/functionOverloads34.ts
../TypeScript/tests//cases/compiler/functionOverloads35.ts
../TypeScript/tests//cases/compiler/functionOverloads36.ts
../TypeScript/tests//cases/compiler/functionOverloads37.ts
../TypeScript/tests//cases/compiler/functionOverloads38.ts
../TypeScript/tests//cases/compiler/functionOverloads39.ts
../TypeScript/tests//cases/compiler/functionOverloads4.ts
../TypeScript/tests//cases/compiler/functionOverloads40.ts
../TypeScript/tests//cases/compiler/functionOverloads41.ts
../TypeScript/tests//cases/compiler/functionOverloads42.ts
../TypeScript/tests//cases/compiler/functionOverloads43.ts
../TypeScript/tests//cases/compiler/functionOverloads44.ts
../TypeScript/tests//cases/compiler/functionOverloads45.ts
../TypeScript/tests//cases/compiler/functionOverloads5.ts
../TypeScript/tests//cases/compiler/functionOverloads6.ts
../TypeScript/tests//cases/compiler/functionOverloads7.ts
../TypeScript/tests//cases/compiler/functionOverloads8.ts
../TypeScript/tests//cases/compiler/functionOverloads9.ts
../TypeScript/tests//cases/compiler/functionOverloadsOnGenericArity1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,13 +15,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
@@ -38,20 +29,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,11 +1,11 @@
// overloading on arity not allowed
interface C {
- f<T>(): string;
- f<T, U>(): string;
-
- <T>(): string;
- <T, U>(): string;
-
- new <T>(): string;
- new <T, U>(): string;
+ f(): string,
+ f(): string,
+
+ <T>(): string,
+ <T, U>(): string,
+
+ new <T>(): string,
+ new <T, U>(): string
}
../TypeScript/tests//cases/compiler/functionOverloadsOnGenericArity2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -40,13 +40,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -74,20 +65,4 @@
"name": "then"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,5 +1,5 @@
interface I {
- then(p: string): string;
- then<U>(p: string): string;
- then<U, T>(p: string): Date;
-}
\ No newline at end of file
+ then(p: string): string,
+ then(p: string): string,
+ then(p: string): Date
+}
../TypeScript/tests//cases/compiler/functionOverloadsOutOfOrder.ts
../TypeScript/tests//cases/compiler/functionOverloadsRecursiveGenericReturnType.ts
../TypeScript/tests//cases/compiler/functionReturn.ts
../TypeScript/tests//cases/compiler/functionReturningItself.ts
../TypeScript/tests//cases/compiler/functionSignatureAssignmentCompat1.ts
../TypeScript/tests//cases/compiler/functionsInClassExpressions.ts
../TypeScript/tests//cases/compiler/functionsMissingReturnStatementsAndExpressions.ts
../TypeScript/tests//cases/compiler/functionsMissingReturnStatementsAndExpressions.ts: { index: 2736,
lineNumber: 131,
column: 4,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/functionSubtypingOfVarArgs.ts
../TypeScript/tests//cases/compiler/functionSubtypingOfVarArgs2.ts
../TypeScript/tests//cases/compiler/functionsWithModifiersInBlocks1.ts
../TypeScript/tests//cases/compiler/functionType.ts
../TypeScript/tests//cases/compiler/functionTypeArgumentArrayAssignment.ts
../TypeScript/tests//cases/compiler/functionTypeArgumentAssignmentCompat.ts
../TypeScript/tests//cases/compiler/functionTypesLackingReturnTypes.ts
../TypeScript/tests//cases/compiler/functionTypesLackingReturnTypes.ts: { index: 38,
lineNumber: 3,
column: 16,
message: '\'=>\' expected.' }
../TypeScript/tests//cases/compiler/functionVariableInReturnTypeAnnotation.ts
../TypeScript/tests//cases/compiler/functionWithAnyReturnTypeAndNoReturnExpression.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements1.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements10.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements11.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements12.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements13.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements14.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements15.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements16.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements2.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements3.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements4.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements5.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements6.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements7.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements8.ts
../TypeScript/tests//cases/compiler/functionWithDefaultParameterWithNoStatements9.ts
../TypeScript/tests//cases/compiler/functionWithNoBestCommonType1.ts
../TypeScript/tests//cases/compiler/functionWithNoBestCommonType2.ts
../TypeScript/tests//cases/compiler/functionWithSameNameAsField.ts
../TypeScript/tests//cases/compiler/functionWithThrowButNoReturn1.ts
../TypeScript/tests//cases/compiler/funduleExportedClassIsUsedBeforeDeclaration.ts
../TypeScript/tests//cases/compiler/funduleOfFunctionWithoutReturnTypeAnnotation.ts
../TypeScript/tests//cases/compiler/funduleSplitAcrossFiles.ts
../TypeScript/tests//cases/compiler/funduleUsedAcrossFileBoundary.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -193,18 +193,5 @@
"computed": false
},
- "arguments": [],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "T"
- },
- "typeParameters": null
- }
- ]
- }
+ "arguments": []
}
}
Index:
===================================================================
---
+++
@@ -1,13 +1,12 @@
// @Filename: funduleUsedAcrossFileBoundary_file1.ts
-declare function Q<T>(value: T): string;
+declare function Q<T>(value: T): string
declare module Q {
- interface Promise<T> {
- foo: string;
- }
- export function defer<T>(): string;
+ interface Promise<T> {
+ foo: string
+ }export function defer<T>(): string
}
\ No newline at end of file
// @Filename: funduleUsedAcrossFileBoundary_file2.ts
function promiseWithCancellation<T>(promise: Q.Promise<T>) {
- var deferred = Q.defer<T>(); // used to be an error
-}
+ var deferred = Q.defer(); // used to be an error
+}
../TypeScript/tests//cases/compiler/fuzzy.ts
../TypeScript/tests//cases/compiler/fuzzy.ts: { index: 340,
lineNumber: 17,
column: 33,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/generativeRecursionWithTypeOf.ts
../TypeScript/tests//cases/compiler/generatorES6_1.ts
../TypeScript/tests//cases/compiler/generatorES6_2.ts
../TypeScript/tests//cases/compiler/generatorES6_3.ts
../TypeScript/tests//cases/compiler/generatorES6_4.ts
../TypeScript/tests//cases/compiler/generatorES6_5.ts
../TypeScript/tests//cases/compiler/generatorES6_6.ts
../TypeScript/tests//cases/compiler/generatorES6InAMDModule.ts
../TypeScript/tests//cases/compiler/generatorTransformFinalLabel.ts
../TypeScript/tests//cases/compiler/genericAndNonGenericInheritedSignature1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -49,13 +49,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
interface Foo {
- f(x: any): any;
+ f(x: any): any
}
interface Bar {
- f<T>(x: T): T;
+ f(x: T): T
}
-interface Hello extends Foo, Bar {
-}
+interface Hello extends Foo, Bar {}
../TypeScript/tests//cases/compiler/genericAndNonGenericInheritedSignature2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -49,13 +49,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
interface Foo {
- f(x: any): any;
+ f(x: any): any
}
interface Bar {
- f<T>(x: T): T;
+ f(x: T): T
}
-interface Hello extends Bar, Foo {
-}
+interface Hello extends Bar, Foo {}
../TypeScript/tests//cases/compiler/genericAndNonGenericOverload1.ts
../TypeScript/tests//cases/compiler/genericArgumentCallSigAssignmentCompat.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -108,13 +108,4 @@
"name": "all"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
@@ -187,13 +178,4 @@
"name": "identity"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,19 +1,17 @@
module Underscore {
- export interface Iterator<T, U> {
- (value: T, index: any, list: any): U;
- }
-
- export interface Static {
- all<T>(list: T[], iterator?: Iterator<T, boolean>, context?: any): boolean;
- identity<T>(value: T): T;
- }
+ export interface Iterator<T, U> {
+ (value: T, index: any, list: any): U
+ }export interface Static {
+ all(list: T[], iterator?: Iterator<T, boolean>, context?: any): boolean,
+ identity(value: T): T
+ }
}
-
+
declare var _: Underscore.Static;
-
+
// No error, Call signatures of types '<T>(value: T) => T' and 'Underscore.Iterator<{}, boolean>' are compatible when instantiated with any.
// Ideally, we would not have a generic signature here, because it should be instantiated with {} during inferential typing
-_.all([true, 1, null, 'yes'], _.identity);
-
+_.all([true, 1, null, "yes"], _.identity);
+
// Ok, because fixing makes us infer boolean for T
_.all([true], _.identity);
../TypeScript/tests//cases/compiler/genericArray0.ts
../TypeScript/tests//cases/compiler/genericArray1.ts
../TypeScript/tests//cases/compiler/genericArrayAssignment1.ts
../TypeScript/tests//cases/compiler/genericArrayAssignmentCompatErrors.ts
../TypeScript/tests//cases/compiler/genericArrayExtenstions.ts
../TypeScript/tests//cases/compiler/genericArrayMethods1.ts
../TypeScript/tests//cases/compiler/genericArrayPropertyAssignment.ts
../TypeScript/tests//cases/compiler/genericArrayWithoutTypeAnnotation.ts
../TypeScript/tests//cases/compiler/genericAssignmentCompatOfFunctionSignatures1.ts
../TypeScript/tests//cases/compiler/genericAssignmentCompatWithInterfaces1.ts
../TypeScript/tests//cases/compiler/genericAssignmentCompatWithInterfaces1.ts: { index: 446,
lineNumber: 17,
column: 22,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericBaseClassLiteralProperty.ts
../TypeScript/tests//cases/compiler/genericBaseClassLiteralProperty2.ts
../TypeScript/tests//cases/compiler/genericCallbackInvokedInsideItsContainingFunction1.ts
../TypeScript/tests//cases/compiler/genericCallbacksAndClassHierarchy.ts
../TypeScript/tests//cases/compiler/genericCallSpecializedToTypeArg.ts
../TypeScript/tests//cases/compiler/genericCallsWithoutParens.ts
../TypeScript/tests//cases/compiler/genericCallsWithoutParens.ts: { index: 38,
lineNumber: 2,
column: 17,
message: '\'(\' expected.' }
../TypeScript/tests//cases/compiler/genericCallWithFixedArguments.ts
../TypeScript/tests//cases/compiler/genericCallWithNonGenericArgs1.ts
../TypeScript/tests//cases/compiler/genericCallWithObjectLiteralArguments1.ts
../TypeScript/tests//cases/compiler/genericCallWithoutArgs.ts
../TypeScript/tests//cases/compiler/genericCallWithoutArgs.ts: { index: 53,
lineNumber: 4,
column: 16,
message: '\'(\' expected.' }
../TypeScript/tests//cases/compiler/genericChainedCalls.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -24,13 +24,4 @@
"name": "func"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,13 +1,14 @@
interface I1<T> {
- func<U>(callback: (value: T) => U): I1<T>;
+ func(callback: (value: T) => U): I1<T>
}
-
+
declare var v1: I1<number>;
-
-var r1 = v1.func(num => num.toString())
- .func(str => str.length) // error, number doesn't have a length
- .func(num => num.toString())
-
-var s1 = v1.func(num => num.toString())
-var s2 = s1.func(str => str.length) // should also error
-var s3 = s2.func(num => num.toString())
+
+var r1 = v1
+ .func(num => num.toString())
+ .func(str => str.length) // error, number doesn't have a length
+ .func(num => num.toString());
+
+var s1 = v1.func(num => num.toString());
+var s2 = s1.func(str => str.length); // should also error
+var s3 = s2.func(num => num.toString());
../TypeScript/tests//cases/compiler/genericClasses0.ts
../TypeScript/tests//cases/compiler/genericClasses1.ts
../TypeScript/tests//cases/compiler/genericClasses2.ts
../TypeScript/tests//cases/compiler/genericClasses3.ts
../TypeScript/tests//cases/compiler/genericClasses4.ts
../TypeScript/tests//cases/compiler/genericClassesInModule.ts
../TypeScript/tests//cases/compiler/genericClassesInModule2.ts
../TypeScript/tests//cases/compiler/genericClassesRedeclaration.ts
../TypeScript/tests//cases/compiler/genericClassesRedeclaration.ts: { index: 133,
lineNumber: 4,
column: 55,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/genericClassImplementingGenericInterfaceFromAnotherModule.ts
../TypeScript/tests//cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts
../TypeScript/tests//cases/compiler/genericClassPropertyInheritanceSpecialization.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -102,14 +102,5 @@
"type": "Identifier",
"name": "KnockoutObservableBase"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
@@ -215,17 +206,5 @@
"type": "Identifier",
"name": "KnockoutObservable"
- },
- "typeArguments": [
- {
- "type": "TSArrayType",
- "elementType": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- }
- ]
+ }
}
]
@@ -886,269 +865,279 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Controls"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Validators"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "typeParameters": {
- "type": "TypeParameterDeclaration",
- "params": [
- {
- "type": "TypeParameter",
- "name": "TValue",
- "constraint": null
- }
- ]
- },
- "id": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Controls"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
"type": "Identifier",
- "name": "Validator"
+ "name": "Validators"
},
"body": {
- "type": "ClassBody",
+ "type": "TSModuleBlock",
"body": [
{
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "_subscription"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "private",
- "decorators": [],
- "typeAnnotation": null
- },
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "message"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "public",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "KnockoutObservable"
- },
- "typeArguments": [
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "typeParameters": {
+ "type": "TypeParameterDeclaration",
+ "params": [
{
- "type": "TSStringKeyword"
+ "type": "TypeParameter",
+ "name": "TValue",
+ "constraint": null
}
]
- }
- }
- },
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "validationState"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "public",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "KnockoutObservable"
- },
- "typeArguments": [
+ },
+ "id": {
+ "type": "Identifier",
+ "name": "Validator"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
{
- "type": "TSNumberKeyword"
- }
- ]
- }
- }
- },
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "validate"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "public",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "KnockoutObservable"
- },
- "typeArguments": [
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "_subscription"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "private",
+ "decorators": [],
+ "typeAnnotation": null
+ },
{
- "type": "TSTypeReference",
- "typeName": {
+ "type": "ClassProperty",
+ "key": {
"type": "Identifier",
- "name": "TValue"
+ "name": "message"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "public",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "KnockoutObservable"
+ },
+ "typeArguments": [
+ {
+ "type": "TSStringKeyword"
+ }
+ ]
+ }
}
- }
- ]
- }
- }
- },
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
- "type": "Identifier",
- "name": "message",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
+ },
+ {
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "validationState"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "public",
+ "decorators": [],
"typeAnnotation": {
- "type": "TSStringKeyword"
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "KnockoutObservable"
+ },
+ "typeArguments": [
+ {
+ "type": "TSNumberKeyword"
+ }
+ ]
+ }
}
},
- "decorators": []
- }
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": []
- }
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- },
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "destroy"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": []
- },
- "returnType": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSVoidKeyword"
- }
- },
- "params": []
- },
- "computed": false,
- "static": false,
- "kind": "method",
- "accessibility": "public",
- "decorators": []
- },
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "_validate"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
{
- "type": "ReturnStatement",
- "argument": {
- "type": "Literal",
- "value": 0
+ "type": "ClassProperty",
+ "key": {
+ "type": "Identifier",
+ "name": "validate"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "public",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "KnockoutObservable"
+ },
+ "typeArguments": [
+ {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TValue"
+ }
+ }
+ ]
+ }
}
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "message",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
+ },
+ "decorators": []
+ }
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ }
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "destroy"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": []
+ },
+ "returnType": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSVoidKeyword"
+ }
+ },
+ "params": []
+ },
+ "computed": false,
+ "static": false,
+ "kind": "method",
+ "accessibility": "public",
+ "decorators": []
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "_validate"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ReturnStatement",
+ "argument": {
+ "type": "Literal",
+ "value": 0
+ }
+ }
+ ]
+ },
+ "returnType": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ },
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "value",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "TValue"
+ }
+ }
+ },
+ "decorators": []
+ }
+ ]
+ },
+ "computed": false,
+ "static": false,
+ "kind": "method",
+ "accessibility": "public",
+ "decorators": []
}
]
},
- "returnType": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
- },
- "params": [
- {
- "type": "Identifier",
- "name": "value",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "TValue"
- }
- }
- },
- "decorators": []
- }
- ]
+ "superClass": null,
+ "implements": [],
+ "decorators": []
},
- "computed": false,
- "static": false,
- "kind": "method",
- "accessibility": "public",
- "decorators": []
+ "specifiers": [],
+ "source": null
}
]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
- }
- ]
+ }
+ }
+ ]
+ }
}
- }
+ ]
}
},
@@ -1160,20 +1149,11 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "ViewModels"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Controls"
- },
- "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
"type": "TSModuleDeclaration",
"name": {
"type": "Identifier",
- "name": "Validators"
+ "name": "ViewModels"
},
"body": {
@@ -1181,129 +1161,153 @@
"body": [
{
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "typeParameters": {
- "type": "TypeParameterDeclaration",
- "params": [
- {
- "type": "TypeParameter",
- "name": "TValue",
- "constraint": null
- }
- ]
- },
- "superTypeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "TValue"
- },
- "typeParameters": null
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "Validator"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
- "type": "Identifier",
- "name": "message",
- "optional": true,
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSStringKeyword"
- }
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Controls"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Validators"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "typeParameters": {
+ "type": "TypeParameterDeclaration",
+ "params": [
+ {
+ "type": "TypeParameter",
+ "name": "TValue",
+ "constraint": null
+ }
+ ]
},
+ "superTypeParameters": {
+ "type": "TypeParameterInstantiation",
+ "params": [
+ {
+ "type": "GenericTypeAnnotation",
+ "id": {
+ "type": "Identifier",
+ "name": "TValue"
+ },
+ "typeParameters": null
+ }
+ ]
+ },
+ "id": {
+ "type": "Identifier",
+ "name": "Validator"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "message",
+ "optional": true,
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSStringKeyword"
+ }
+ },
+ "decorators": []
+ }
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "Super"
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "message"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
+ }
+ ]
+ },
+ "superClass": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "Portal"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Controls"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Validators"
+ },
+ "computed": false
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Validator"
+ },
+ "computed": false
+ },
+ "implements": [],
"decorators": []
- }
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "Super"
- },
- "arguments": [
- {
- "type": "Identifier",
- "name": "message"
- }
- ]
- }
- }
- ]
+ },
+ "specifiers": [],
+ "source": null
}
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
+ ]
}
- ]
- },
- "superClass": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "Portal"
- },
- "property": {
- "type": "Identifier",
- "name": "Controls"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Validators"
- },
- "computed": false
- },
- "property": {
- "type": "Identifier",
- "name": "Validator"
- },
- "computed": false
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ }
+ ]
+ }
}
]
}
}
- }
+ ]
}
},
@@ -1345,26 +1349,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "PortalFx"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "ViewModels"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Controls"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Validators"
- }
+ "name": "undefined"
},
"property": {
@@ -1428,58 +1411,5 @@
"computed": false
},
- "arguments": [],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "JSXMemberExpression",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "PortalFx"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "ViewModels"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Controls"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Validators"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Validator"
- }
- },
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "TValue"
- },
- "typeParameters": null
- }
- ]
- }
- }
- ]
- }
+ "arguments": []
},
"computed": false,
@@ -1502,26 +1432,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "PortalFx"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "ViewModels"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Controls"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "Validators"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,74 +1,83 @@
interface KnockoutObservableBase<T> {
- peek(): T;
- (): T;
- (value: T): void;
+ peek(): T,
+ (): T,
+ (value: T): void
}
-interface KnockoutObservable<T> extends KnockoutObservableBase<T> {
- equalityComparer(a: T, b: T): boolean;
- valueHasMutated(): void;
- valueWillMutate(): void;
+interface KnockoutObservable<T> extends KnockoutObservableBase {
+ equalityComparer(a: T, b: T): boolean,
+ valueHasMutated(): void,
+ valueWillMutate(): void
}
-interface KnockoutObservableArray<T> extends KnockoutObservable<T[]> {
- indexOf(searchElement: T, fromIndex?: number): number;
- slice(start: number, end?: number): T[];
- splice(start: number, deleteCount?: number, ...items: T[]): T[];
- pop(): T;
- push(...items: T[]): void;
- shift(): T;
- unshift(...items: T[]): number;
- reverse(): T[];
- sort(compareFunction?: (a: T, b: T) => number): void;
- replace(oldItem: T, newItem: T): void;
- remove(item: T): T[];
- removeAll(items?: T[]): T[];
- destroy(item: T): void;
- destroyAll(items?: T[]): void;
+interface KnockoutObservableArray<T> extends KnockoutObservable {
+ indexOf(searchElement: T, fromIndex?: number): number,
+ slice(start: number, end?: number): T[],
+ splice(start: number, deleteCount?: number, ...items: T[]): T[],
+ pop(): T,
+ push(...items: T[]): void,
+ shift(): T,
+ unshift(...items: T[]): number,
+ reverse(): T[],
+ sort(compareFunction?: (a: T, b: T) => number): void,
+ replace(oldItem: T, newItem: T): void,
+ remove(item: T): T[],
+ removeAll(items?: T[]): T[],
+ destroy(item: T): void,
+ destroyAll(items?: T[]): void
}
interface KnockoutObservableArrayStatic {
- fn: KnockoutObservableArray<any>;
+ fn: KnockoutObservableArray<any>,
- <T>(value?: T[]): KnockoutObservableArray<T>;
+ <T>(value?: T[]): KnockoutObservableArray<T>
}
declare module ko {
- export var observableArray: KnockoutObservableArrayStatic;
+ export var observableArray: KnockoutObservableArrayStatic;
}
-module Portal.Controls.Validators {
+module Portal {
+ module Controls {
+ module Validators {
- export class Validator<TValue> {
+ export class Validator<TValue> {
private _subscription;
public message: KnockoutObservable<string>;
public validationState: KnockoutObservable<number>;
public validate: KnockoutObservable<TValue>;
- constructor(message?: string) { }
- public destroy(): void { }
- public _validate(value: TValue): number {return 0 }
+ constructor(message?: string) {}
+ public destroy(): void {}
+ public _validate(value: TValue): number {
+ return 0;
+ }
+ }
}
+ }
}
-module PortalFx.ViewModels.Controls.Validators {
+module PortalFx {
+ module ViewModels {
+ module Controls {
+ module Validators {
- export class Validator<TValue> extends Portal.Controls.Validators.Validator<TValue> {
-
- constructor(message?: string) {
+ export class Validator<TValue>
+ extends Portal.Controls.Validators.Validator<TValue> {
+ constructor(message?: string) {
super(message);
+ }
}
+ }
}
-
+ }
}
interface Contract<TValue> {
-
- validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>;
+ validators: KnockoutObservableArray<undefined.Validator<TValue>>
}
-
class ViewModel<TValue> implements Contract<TValue> {
-
- public validators: KnockoutObservableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>> = ko.observableArray<PortalFx.ViewModels.Controls.Validators.Validator<TValue>>();
+ public validators: KnockoutObservableArray<
+ undefined.Validator<TValue>
+ > = ko.observableArray();
}
-
../TypeScript/tests//cases/compiler/genericClassStaticMethod.ts
../TypeScript/tests//cases/compiler/genericClassWithStaticFactory.ts
../TypeScript/tests//cases/compiler/genericClassWithStaticsUsingTypeArguments.ts
../TypeScript/tests//cases/compiler/genericCloduleInModule.ts
../TypeScript/tests//cases/compiler/genericCloduleInModule2.ts
../TypeScript/tests//cases/compiler/genericCloneReturnTypes.ts
../TypeScript/tests//cases/compiler/genericCloneReturnTypes2.ts
../TypeScript/tests//cases/compiler/genericCombinators2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -139,20 +139,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -258,27 +242,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "V"
- }
- }
- ],
"parameters": [
{
@@ -583,32 +544,5 @@
"expression": false
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "Date"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
@@ -648,32 +582,5 @@
"name": "rf1"
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- },
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "Date"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,16 +1,20 @@
interface Collection<T, U> {
- length: number;
- add(x: T, y: U): void;
- remove(x: T, y: U): boolean;
+ length: number,
+ add(x: T, y: U): void,
+ remove(x: T, y: U): boolean
}
interface Combinators {
- map<T, U>(c: Collection<T, U>, f: (x: T, y: U) => any): Collection<any, any>;
- map<T, U, V>(c: Collection<T, U>, f: (x: T, y: U) => V): Collection<T, V>;
+ map(c: Collection<T, U>, f: (x: T, y: U) => any): Collection<any, any>,
+ map(c: Collection<T, U>, f: (x: T, y: U) => V): Collection<T, V>
}
\ No newline at end of file
var _: Combinators;
var c2: Collection<number, string>;
-var rf1 = (x: number, y: string) => { return x.toFixed() };
-var r5a = _.map<number, string, Date>(c2, (x, y) => { return x.toFixed() });
-var r5b = _.map<number, string, Date>(c2, rf1);
+var rf1 = (x: number, y: string) => {
+ return x.toFixed();
+};
+var r5a = _.map(c2, (x, y) => {
+ return x.toFixed();
+});
+var r5b = _.map(c2, rf1);
../TypeScript/tests//cases/compiler/genericConstraint1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -177,17 +177,5 @@
"value": ""
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,8 +1,8 @@
class C<T> {
- public bar2<U extends T>(x: T, y: U): T {
- return null;
- }
+ public bar2<U extends T>(x: T, y: U): T {
+ return null;
+ }
}
\ No newline at end of file
var x = new C<number>();
-x.bar2<string>(2, "");
+x.bar2(2, "");
../TypeScript/tests//cases/compiler/genericConstraint2.ts
../TypeScript/tests//cases/compiler/genericConstraint3.ts
../TypeScript/tests//cases/compiler/genericConstraint3.ts: { index: 41,
lineNumber: 2,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/genericConstraintDeclaration.ts
../TypeScript/tests//cases/compiler/genericConstraintOnExtendedBuiltinTypes.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -85,149 +85,154 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Tweening"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "typeParameters": {
- "type": "TypeParameterDeclaration",
- "params": [
- {
- "type": "TypeParameter",
- "name": "T",
- "constraint": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "ICloneable"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Tweening"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "typeParameters": {
+ "type": "TypeParameterDeclaration",
+ "params": [
+ {
+ "type": "TypeParameter",
+ "name": "T",
+ "constraint": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "ICloneable"
+ }
+ }
}
}
- }
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "Tween"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "_from"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "private",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- }
+ ]
},
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
+ "id": {
+ "type": "Identifier",
+ "name": "Tween"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
"type": "Identifier",
- "name": "from",
+ "name": "_from"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "private",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "T"
}
- },
- "decorators": []
+ }
}
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "ThisExpression"
- },
- "property": {
- "type": "Identifier",
- "name": "_from"
- },
- "computed": false
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "from",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "T"
+ }
+ }
},
- "right": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "from"
+ "decorators": []
+ }
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "AssignmentExpression",
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "ThisExpression"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "_from"
+ },
+ "computed": false
},
- "property": {
- "type": "Identifier",
- "name": "Clone"
- },
- "computed": false
- },
- "arguments": []
+ "right": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "from"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Clone"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ }
}
- }
+ ]
}
- ]
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
}
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- }
- ]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -239,100 +244,105 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Tweening"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "superTypeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "NumberTween"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Tweening"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "superTypeParameters": {
+ "type": "TypeParameterInstantiation",
+ "params": [
+ {
+ "type": "GenericTypeAnnotation",
+ "id": {
+ "type": "TSNumberKeyword"
+ },
+ "typeParameters": null
+ }
+ ]
+ },
+ "id": {
+ "type": "Identifier",
+ "name": "NumberTween"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "MethodDefinition",
+ "key": {
"type": "Identifier",
- "name": "from",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "from",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ },
+ "decorators": []
}
- },
- "decorators": []
- }
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "Super"
- },
- "arguments": [
- {
- "type": "Identifier",
- "name": "from"
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "Super"
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "from"
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
- ]
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
}
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- }
- ]
- },
- "superClass": {
- "type": "Identifier",
- "name": "Tween"
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "superClass": {
+ "type": "Identifier",
+ "name": "Tween"
+ },
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,26 +1,31 @@
declare module EndGate {
- export interface ICloneable {
- Clone(): any;
- }
+ export interface ICloneable {
+ Clone(): any
+ }
}
-interface Number extends EndGate.ICloneable { }
+interface Number extends EndGate.ICloneable {}
-module EndGate.Tweening {
- export class Tween<T extends ICloneable>{
- private _from: T;
+module EndGate {
+ module Tweening {
+ export class Tween<T extends ICloneable> {
+ private _from: T;
- constructor(from: T) {
- this._from = from.Clone();
- }
+ constructor(from: T) {
+ this._from = from.Clone();
\ No newline at end of file
+ }
}
+ }
}
-module EndGate.Tweening {
- export class NumberTween extends Tween<number>{
- constructor(from: number) {
- super(from);
- }
+module EndGate {
+ module Tweening {
+
+ export class NumberTween extends Tween<number> {
+ constructor(from: number) {
+ super(from);
+ }
}
-}
+ }
+}
../TypeScript/tests//cases/compiler/genericConstraintOnExtendedBuiltinTypes2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -80,149 +80,154 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Tweening"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "typeParameters": {
- "type": "TypeParameterDeclaration",
- "params": [
- {
- "type": "TypeParameter",
- "name": "T",
- "constraint": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "ICloneable"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Tweening"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "typeParameters": {
+ "type": "TypeParameterDeclaration",
+ "params": [
+ {
+ "type": "TypeParameter",
+ "name": "T",
+ "constraint": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "ICloneable"
+ }
+ }
}
}
- }
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "Tween"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "ClassProperty",
- "key": {
- "type": "Identifier",
- "name": "_from"
- },
- "value": null,
- "computed": false,
- "static": false,
- "accessibility": "private",
- "decorators": [],
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- }
+ ]
},
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
+ "id": {
+ "type": "Identifier",
+ "name": "Tween"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "ClassProperty",
+ "key": {
"type": "Identifier",
- "name": "from",
+ "name": "_from"
+ },
+ "value": null,
+ "computed": false,
+ "static": false,
+ "accessibility": "private",
+ "decorators": [],
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "T"
}
- },
- "decorators": []
+ }
}
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "MemberExpression",
- "object": {
- "type": "ThisExpression"
- },
- "property": {
- "type": "Identifier",
- "name": "_from"
- },
- "computed": false
+ },
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "from",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSTypeReference",
+ "typeName": {
+ "type": "Identifier",
+ "name": "T"
+ }
+ }
},
- "right": {
- "type": "CallExpression",
- "callee": {
- "type": "MemberExpression",
- "object": {
- "type": "Identifier",
- "name": "from"
+ "decorators": []
+ }
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "AssignmentExpression",
+ "operator": "=",
+ "left": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "ThisExpression"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "_from"
+ },
+ "computed": false
},
- "property": {
- "type": "Identifier",
- "name": "Clone"
- },
- "computed": false
- },
- "arguments": []
+ "right": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "MemberExpression",
+ "object": {
+ "type": "Identifier",
+ "name": "from"
+ },
+ "property": {
+ "type": "Identifier",
+ "name": "Clone"
+ },
+ "computed": false
+ },
+ "arguments": []
+ }
+ }
}
- }
+ ]
}
- ]
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
}
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- }
- ]
- },
- "superClass": null,
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "superClass": null,
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
},
@@ -234,101 +239,106 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "Tweening"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSNamespaceExportDeclaration",
- "declaration": {
- "type": "ClassDeclaration",
- "superTypeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "Number"
- },
- "typeParameters": null
- }
- ]
- },
- "id": {
- "type": "Identifier",
- "name": "NumberTween"
- },
- "body": {
- "type": "ClassBody",
- "body": [
- {
- "type": "MethodDefinition",
- "key": {
- "type": "Identifier",
- "name": "constructor"
- },
- "value": {
- "type": "FunctionExpression",
- "id": null,
- "params": [
- {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "Tweening"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSNamespaceExportDeclaration",
+ "declaration": {
+ "type": "ClassDeclaration",
+ "superTypeParameters": {
+ "type": "TypeParameterInstantiation",
+ "params": [
+ {
+ "type": "GenericTypeAnnotation",
+ "id": {
"type": "Identifier",
- "name": "from",
- "typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
+ "name": "Number"
+ },
+ "typeParameters": null
+ }
+ ]
+ },
+ "id": {
+ "type": "Identifier",
+ "name": "NumberTween"
+ },
+ "body": {
+ "type": "ClassBody",
+ "body": [
+ {
+ "type": "MethodDefinition",
+ "key": {
+ "type": "Identifier",
+ "name": "constructor"
+ },
+ "value": {
+ "type": "FunctionExpression",
+ "id": null,
+ "params": [
+ {
+ "type": "Identifier",
+ "name": "from",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
+ "typeAnnotation": {
+ "type": "TSNumberKeyword"
+ }
+ },
+ "decorators": []
}
- },
- "decorators": []
- }
- ],
- "generator": false,
- "expression": false,
- "async": false,
- "body": {
- "type": "BlockStatement",
- "body": [
- {
- "type": "ExpressionStatement",
- "expression": {
- "type": "CallExpression",
- "callee": {
- "type": "Super"
- },
- "arguments": [
- {
- "type": "Identifier",
- "name": "from"
+ ],
+ "generator": false,
+ "expression": false,
+ "async": false,
+ "body": {
+ "type": "BlockStatement",
+ "body": [
+ {
+ "type": "ExpressionStatement",
+ "expression": {
+ "type": "CallExpression",
+ "callee": {
+ "type": "Super"
+ },
+ "arguments": [
+ {
+ "type": "Identifier",
+ "name": "from"
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
- ]
+ },
+ "computed": false,
+ "accessibility": null,
+ "static": false,
+ "kind": "constructor"
}
- },
- "computed": false,
- "accessibility": null,
- "static": false,
- "kind": "constructor"
- }
- ]
- },
- "superClass": {
- "type": "Identifier",
- "name": "Tween"
- },
- "implements": [],
- "decorators": []
- },
- "specifiers": [],
- "source": null
+ ]
+ },
+ "superClass": {
+ "type": "Identifier",
+ "name": "Tween"
+ },
+ "implements": [],
+ "decorators": []
+ },
+ "specifiers": [],
+ "source": null
+ }
+ ]
}
- ]
- }
+ }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,25 +1,31 @@
module EndGate {
- export interface ICloneable {
- Clone(): any;
- }
+ export interface ICloneable {
+ Clone(): any
+ }
}
-interface Number extends EndGate.ICloneable { }
+interface Number extends EndGate.ICloneable {}
-module EndGate.Tweening {
- export class Tween<T extends ICloneable>{
- private _from: T;
+module EndGate {
+ module Tweening {
- constructor(from: T) {
- this._from = from.Clone();
- }
+ export class Tween<T extends ICloneable> {
+ private _from: T;
+
+ constructor(from: T) {
\ No newline at end of file
+ this._from = from.Clone();
+ }
}
+ }
}
-module EndGate.Tweening {
- export class NumberTween extends Tween<Number>{
- constructor(from: number) {
- super(from);
- }
+module EndGate {
+ module Tweening {
+
+ export class NumberTween extends Tween<Number> {
+ constructor(from: number) {
+ super(from);
+ }
}
-}
+ }
+}
../TypeScript/tests//cases/compiler/genericConstraintSatisfaction1.ts
../TypeScript/tests//cases/compiler/genericConstraintSatisfaction1.ts: { index: 26,
lineNumber: 2,
column: 8,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/genericConstructExpressionWithoutArgs.ts
../TypeScript/tests//cases/compiler/genericConstructExpressionWithoutArgs.ts: { index: 195,
lineNumber: 10,
column: 0,
message: '\'(\' expected.' }
../TypeScript/tests//cases/compiler/genericConstructInvocationWithNoTypeArg.ts
../TypeScript/tests//cases/compiler/genericConstructorFunction1.ts
../TypeScript/tests//cases/compiler/genericConstructSignatureInInterface.ts
../TypeScript/tests//cases/compiler/genericContextualTypingSpecialization.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -75,17 +75,5 @@
"value": 0
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSNumberKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,2 +1,2 @@
var b: number[];
-b.reduce<number>((c, d) => c + d, 0); // should not error on '+'
\ No newline at end of file
+b.reduce((c, d) => c + d, 0); // should not error on '+'
../TypeScript/tests//cases/compiler/genericDefaults.ts
../TypeScript/tests//cases/compiler/genericDefaults.ts: { index: 9327,
lineNumber: 399,
column: 20,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericDefaultsErrors.ts
../TypeScript/tests//cases/compiler/genericDefaultsErrors.ts: { index: 749,
lineNumber: 28,
column: 16,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/genericDefaultsJs.ts
../TypeScript/tests//cases/compiler/genericDerivedTypeWithSpecializedBase.ts
../TypeScript/tests//cases/compiler/genericDerivedTypeWithSpecializedBase2.ts
../TypeScript/tests//cases/compiler/genericFunctionCallSignatureReturnTypeMismatch.ts
../TypeScript/tests//cases/compiler/genericFunctionHasFreshTypeArgs.ts
../TypeScript/tests//cases/compiler/genericFunctions0.ts
../TypeScript/tests//cases/compiler/genericFunctions1.ts
../TypeScript/tests//cases/compiler/genericFunctions2.ts
../TypeScript/tests//cases/compiler/genericFunctions3.ts
../TypeScript/tests//cases/compiler/genericFunctionSpecializations1.ts
../TypeScript/tests//cases/compiler/genericFunctionsWithOptionalParameters1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,20 +15,4 @@
"name": "fold"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "S"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
interface Utils {
- fold<T, S>(c?: Array<T>, folder?: (s: S, t: T) => T, init?: S): T;
+ fold(c?: Array<T>, folder?: (s: S, t: T) => T, init?: S): T
}
../TypeScript/tests//cases/compiler/genericFunctionsWithOptionalParameters2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,20 +15,4 @@
"name": "fold"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "S"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
interface Utils {
- fold<T, S>(c: Array<T>, folder?: (s: S, t: T) => T, init?: S): T;
+ fold(c: Array<T>, folder?: (s: S, t: T) => T, init?: S): T
}
../TypeScript/tests//cases/compiler/genericFunctionsWithOptionalParameters3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -80,20 +80,4 @@
"name": "fold"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "S"
- }
- }
- ],
"parameters": [
{
@@ -205,27 +189,4 @@
"name": "mapReduce"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "V"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,14 +1,36 @@
class Collection<T> {
- public add(x: T) { }
+ public add(x: T) {}
}
interface Utils {
- fold<T, S>(c?: Collection<T>, folder?: (s: S, t: T) => T, init?: S): T;
- mapReduce<T, U, V>(c: Collection<T>, mapper: (x: T) => U, reducer: (y: U) => V): Collection<V>;
+ fold(c?: Collection<T>, folder?: (s: S, t: T) => T, init?: S): T,
+ mapReduce(c: Collection<T>, mapper: (x: T) => U, reducer: (
+ y: U
+ ) => V): Collection<V>
}
var utils: Utils;
var c = new Collection<string>();
-var r3 = utils.mapReduce(c, (x) => { return 1 }, (y) => { return new Date() });
-var r4 = utils.mapReduce(c, (x: string) => { return 1 }, (y: number) => { return new Date() });
-var f1 = (x: string) => { return 1 };
-var f2 = (y: number) => { return new Date() };
+var r3 = utils.mapReduce(
+ c,
+ x => {
+ return 1;
+ },
+ y => {
+ return new Date();
+ }
+);
+var r4 = utils.mapReduce(
+ c,
+ (x: string) => {
+ return 1;
+ },
+ (y: number) => {
+ return new Date();
+ }
+);
+var f1 = (x: string) => {
+ return 1;
+};
+var f2 = (y: number) => {
+ return new Date();
+};
var r5 = utils.mapReduce(c, f1, f2);
../TypeScript/tests//cases/compiler/genericFunctionTypedArgumentsAreFixed.ts
../TypeScript/tests//cases/compiler/genericFunduleInModule.ts
../TypeScript/tests//cases/compiler/genericFunduleInModule2.ts
../TypeScript/tests//cases/compiler/genericGetter.ts
../TypeScript/tests//cases/compiler/genericGetter2.ts
../TypeScript/tests//cases/compiler/genericGetter3.ts
../TypeScript/tests//cases/compiler/genericImplements.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -71,20 +71,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- },
- "constraint": {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "A"
- }
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,20 +1,30 @@
-class A { a; };
-class B { b; };
+class A {
+ a;
+}
+class B {
+ b;
+}
interface I {
- f<T extends A>(): T;
+ f(): T
} // { f: () => { a; } }
// OK
-class X implements I {
- f<T extends B>(): T { return undefined; }
+class X implements I {
+ f<T extends B>(): T {
+ return undefined;
+ }
\ No newline at end of file
} // { f: () => { b; } }
// OK
class Y implements I {
- f<T extends A>(): T { return undefined; }
+ f<T extends A>(): T {
+ return undefined;
+ }
} // { f: () => { a; } }
// OK
class Z implements I {
- f<T>(): T { return undefined; }
-} // { f: <T>() => T }
+ f<T>(): T {
+ return undefined;
+ }
+} // { f: <T>() => T }
../TypeScript/tests//cases/compiler/genericInference1.ts
../TypeScript/tests//cases/compiler/genericInference2.ts
../TypeScript/tests//cases/compiler/genericInheritedDefaultConstructors.ts
../TypeScript/tests//cases/compiler/genericInstanceOf.ts
../TypeScript/tests//cases/compiler/genericInstanceOf.ts: Error: Value undefined is not a valid document
at assertDoc (/Users/despairblue/git/prettier/src/doc-builders.js:7:11)
at Array.forEach (native)
at concat (/Users/despairblue/git/prettier/src/doc-builders.js:14:9)
at printBinaryishExpressions (/Users/despairblue/git/prettier/src/printer.js:3620:19)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:205:21)
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:68:28)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
../TypeScript/tests//cases/compiler/genericInterfaceFunctionTypeParameter.ts
../TypeScript/tests//cases/compiler/genericInterfaceImplementation.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -42,13 +42,4 @@
"name": "flatten"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "B"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,15 +1,15 @@
interface IOption<A> {
- get(): A;
+ get(): A,
- flatten<B>(): IOption<B>;
+ flatten(): IOption<B>
}
-class None<T> implements IOption<T>{
- get(): T {
- throw null;
- }
+class None<T> implements IOption<T> {
+ get(): T {
+ throw null;
+ }
- flatten<U>() : IOption<U> {
- return new None<U>();
- }
+ flatten<U>(): IOption<U> {
+ return new None<U>();
+ }
}
../TypeScript/tests//cases/compiler/genericInterfacesWithoutTypeArguments.ts
../TypeScript/tests//cases/compiler/genericInterfaceTypeCall.ts
../TypeScript/tests//cases/compiler/genericLambaArgWithoutTypeArguments.ts
../TypeScript/tests//cases/compiler/genericMemberFunction.ts
../TypeScript/tests//cases/compiler/genericMergedDeclarationUsingTypeParameter.ts
../TypeScript/tests//cases/compiler/genericMergedDeclarationUsingTypeParameter.ts: { index: 105,
lineNumber: 4,
column: 13,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericMergedDeclarationUsingTypeParameter2.ts
../TypeScript/tests//cases/compiler/genericMergedDeclarationUsingTypeParameter2.ts: { index: 89,
lineNumber: 4,
column: 13,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericMethodOverspecialization.ts
../TypeScript/tests//cases/compiler/genericNewInterface.ts
../TypeScript/tests//cases/compiler/genericObjectCreationWithoutTypeArgs.ts
../TypeScript/tests//cases/compiler/genericObjectCreationWithoutTypeArgs.ts: { index: 80,
lineNumber: 6,
column: 25,
message: '\'(\' expected.' }
../TypeScript/tests//cases/compiler/genericObjectLitReturnType.ts
../TypeScript/tests//cases/compiler/genericOfACloduleType1.ts
../TypeScript/tests//cases/compiler/genericOfACloduleType2.ts
../TypeScript/tests//cases/compiler/genericOverloadSignatures.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -186,13 +186,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
@@ -224,13 +215,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,30 +1,29 @@
interface A {
- <T>(x: T): void;
- <T>(x: T): void;
+ <T>(x: T): void,
+ <T>(x: T): void
}
-function f<T>(a: T);
-function f<T>(a: T);
-function f(a) { }
+function f<T>(a: T)
+function f<T>(a: T)
+function f(a) {}
interface I2 {
- f<T>(x: T): number;
- f<T>(x: T): string;
+ f(x: T): number,
+ f(x: T): string
}
interface I3<T> {
- f(x: T): number;
- f(x: T): string;
+ f(x: T): number,
+ f(x: T): string
}
-class C2<T> {
-}
\ No newline at end of file
+class C2<T> {}
var b: {
- new <T>(x: T, y: string): C2<T>;
- new <T>(x: T, y: string): C2<T>;
-}
+ new <T>(x: T, y: string): C2<T>,
+ new <T>(x: T, y: string): C2<T>
+};
interface D {
- <T>(x: T): T;
- <T>(x: T): T;
-}
+ <T>(x: T): T,
+ <T>(x: T): T
+}
../TypeScript/tests//cases/compiler/genericParameterAssignability1.ts
../TypeScript/tests//cases/compiler/genericParameterAssignability1.ts: { index: 50,
lineNumber: 2,
column: 9,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericPrototypeProperty.ts
../TypeScript/tests//cases/compiler/genericPrototypeProperty2.ts
../TypeScript/tests//cases/compiler/genericPrototypeProperty3.ts
../TypeScript/tests//cases/compiler/genericRecursiveImplicitConstructorErrors1.ts
../TypeScript/tests//cases/compiler/genericRecursiveImplicitConstructorErrors2.ts
../TypeScript/tests//cases/compiler/genericRecursiveImplicitConstructorErrors3.ts
../TypeScript/tests//cases/compiler/genericReduce.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -360,17 +360,5 @@
"value": ""
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "TSStringKeyword"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -4,10 +4,10 @@
var n2 = b.reduceRight((x, y) => x + y);
-n1.x = "fail"; // should error, as 'n1' should be type 'number', not 'any'.
+n1.x = "fail"; // should error, as 'n1' should be type 'number', not 'any'.
n1.toExponential(2); // should not error if 'n1' is correctly number.
-n2.x = "fail"; // should error, as 'n2' should be type 'number', not 'any'.
+n2.x = "fail"; // should error, as 'n2' should be type 'number', not 'any'.
n2.toExponential(2); // should not error if 'n2' is correctly number.
-var n3 = b.reduce<string>( (x, y) => x + y, ""); // Initial value is of type string
\ No newline at end of file
+var n3 = b.reduce((x, y) => x + y, ""); // Initial value is of type string
n3.toExponential(2); // should error if 'n3' is correctly type 'string'
-n3.charAt(0); // should not error if 'n3' is correctly type 'string'
+n3.charAt(0); // should not error if 'n3' is correctly type 'string'
../TypeScript/tests//cases/compiler/genericRestArgs.ts
../TypeScript/tests//cases/compiler/genericReturnTypeFromGetter1.ts
../TypeScript/tests//cases/compiler/genericReversingTypeParameters.ts
../TypeScript/tests//cases/compiler/genericReversingTypeParameters2.ts
../TypeScript/tests//cases/compiler/generics0.ts
../TypeScript/tests//cases/compiler/generics1.ts
../TypeScript/tests//cases/compiler/generics1.ts: { index: 115,
lineNumber: 4,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/generics1NoError.ts
../TypeScript/tests//cases/compiler/generics1NoError.ts: { index: 137,
lineNumber: 5,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/generics2.ts
../TypeScript/tests//cases/compiler/generics2.ts: { index: 115,
lineNumber: 4,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/generics2NoError.ts
../TypeScript/tests//cases/compiler/generics2NoError.ts: { index: 137,
lineNumber: 5,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/generics3.ts
../TypeScript/tests//cases/compiler/generics4.ts
../TypeScript/tests//cases/compiler/generics4NoError.ts
../TypeScript/tests//cases/compiler/generics5.ts
../TypeScript/tests//cases/compiler/generics5.ts: { index: 120,
lineNumber: 5,
column: 17,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/genericsAndHigherOrderFunctions.ts
../TypeScript/tests//cases/compiler/genericsAndHigherOrderFunctions.ts: { index: 221,
lineNumber: 11,
column: 11,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericSignatureIdentity.ts
../TypeScript/tests//cases/compiler/genericSignatureIdentity.ts: { index: 308,
lineNumber: 7,
column: 5,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/genericSignatureInheritance.ts
../TypeScript/tests//cases/compiler/genericSignatureInheritance2.ts
../TypeScript/tests//cases/compiler/genericsManyTypeParameters.ts
../TypeScript/tests//cases/compiler/genericSpecializations1.ts
../TypeScript/tests//cases/compiler/genericSpecializations1.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
../TypeScript/tests//cases/compiler/genericSpecializations2.ts
../TypeScript/tests//cases/compiler/genericSpecializations3.ts
../TypeScript/tests//cases/compiler/genericSpecializationToTypeLiteral1.ts
../TypeScript/tests//cases/compiler/genericSpecializationToTypeLiteral1.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
../TypeScript/tests//cases/compiler/genericStaticAnyTypeFunction.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -161,18 +161,5 @@
"value": 42
}
- ],
- "typeParameters": {
- "type": "TypeParameterInstantiation",
- "params": [
- {
- "type": "GenericTypeAnnotation",
- "id": {
- "type": "Identifier",
- "name": "T"
- },
- "typeParameters": null
- }
- ]
- }
+ ]
}
}
Index:
===================================================================
---
+++
@@ -1,17 +1,12 @@
class A {
+ static one<T>(source: T, value: number): T {
+ return source;
+ }
+ static goo() {
+ return 0;
+ }
- static one<T>(source: T, value: number): T {
-
- return source;
-
- }
- static goo() { return 0; }
-
- static two<T>(source: T): T {
- return this.one<T>(source, 42); // should not error
-
- }
-
+ static two<T>(source: T): T {
+ return this.one(source, 42); // should not error
+ }
}
-
-
../TypeScript/tests//cases/compiler/genericsWithDuplicateTypeParameters1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -295,20 +295,4 @@
"name": "f"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "X"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "X"
- }
- }
- ],
"parameters": []
},
@@ -319,20 +303,4 @@
"name": "f2"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "X"
- }
- },
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "X"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,16 +1,22 @@
-function f<x, x>() { }
-function f2<X, X>(a: X, b: X): X { return null; }
+function f<x, x>() {}
+function f2<X, X>(a: X, b: X): X {
+ return null;
+}
class C<X, X> {
- public f<x, x>() {}
- public f2<X, X>(a: X, b: X): X { return null; }
+ public f<x, x>() {}
+ public f2<X, X>(a: X, b: X): X {
+ return null;
+ }
}
interface I<X, X> {
\ No newline at end of file
- f<X, X>();
- f2<X, X>(a: X, b: X): X;
+ f(),
+ f2(a: X, b: X): X
}
var m = {
- a: function f<X, X>() {},
- b: function f2<X, X>(a: X, b: X): X { return null; }
-}
+ a: function f<X, X>() {},
+ b: function f2<X, X>(a: X, b: X): X {
+ return null;
+ }
+};
../TypeScript/tests//cases/compiler/genericsWithoutTypeParameters1.ts
../TypeScript/tests//cases/compiler/genericTypeArgumentInference1.ts
../TypeScript/tests//cases/compiler/genericTypeArgumentInference1.ts: { index: 445,
lineNumber: 15,
column: 17,
message: 'JSX element \'any\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions1.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions1.ts: { index: 78,
lineNumber: 3,
column: 21,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions2.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions2.ts: { index: 156,
lineNumber: 9,
column: 21,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions3.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions3.ts: { index: 8,
lineNumber: 1,
column: 8,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions4.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions4.ts: { index: 434,
lineNumber: 24,
column: 9,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions5.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions5.ts: { index: 430,
lineNumber: 24,
column: 9,
message: 'JSX element \'T\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericTypeAssertions6.ts
../TypeScript/tests//cases/compiler/genericTypeAssertions6.ts: { index: 186,
lineNumber: 13,
column: 22,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/genericTypeConstraints.ts
../TypeScript/tests//cases/compiler/genericTypeParameterEquivalence2.ts
../TypeScript/tests//cases/compiler/genericTypeReferencesRequireTypeArgs.ts
../TypeScript/tests//cases/compiler/genericTypeUsedWithoutTypeArguments1.ts
../TypeScript/tests//cases/compiler/genericTypeUsedWithoutTypeArguments3.ts
../TypeScript/tests//cases/compiler/genericTypeWithCallableMembers.ts
../TypeScript/tests//cases/compiler/genericTypeWithCallableMembers2.ts
../TypeScript/tests//cases/compiler/genericTypeWithMultipleBases1.ts
../TypeScript/tests//cases/compiler/genericTypeWithMultipleBases1.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
../TypeScript/tests//cases/compiler/genericTypeWithMultipleBases2.ts
../TypeScript/tests//cases/compiler/genericTypeWithMultipleBases3.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -129,14 +129,5 @@
"type": "Identifier",
"name": "IA"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
},
{
@@ -145,14 +136,5 @@
"type": "Identifier",
"name": "IB"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,15 +1,11 @@
interface IA<T> {
-
-foo(x: T): T;
-
+ foo(x: T): T
}
interface IB<T> {
-
-bar(x: T): T;
-
+ bar(x: T): T
}
-interface IC<T> extends IA<T>, IB<T> { }
+interface IC<T> extends IA, IB {}
var c: IC<number>;
../TypeScript/tests//cases/compiler/genericTypeWithNonGenericBaseMisMatch.ts
../TypeScript/tests//cases/compiler/genericWithCallSignatureReturningSpecialization.ts
../TypeScript/tests//cases/compiler/genericWithCallSignatures1.ts
../TypeScript/tests//cases/compiler/genericWithCallSignatures1.ts: { index: 385,
lineNumber: 15,
column: 17,
message: 'JSX element \'string\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/genericWithIndexerOfTypeParameterType1.ts
../TypeScript/tests//cases/compiler/genericWithIndexerOfTypeParameterType1.ts: { index: 44,
lineNumber: 2,
column: 22,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/genericWithIndexerOfTypeParameterType2.ts
../TypeScript/tests//cases/compiler/genericWithOpenTypeParameters1.ts
../TypeScript/tests//cases/compiler/genericWithOpenTypeParameters1.ts: { index: 121,
lineNumber: 7,
column: 26,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.ts
../TypeScript/tests//cases/compiler/getAccessorWithImpliedReturnTypeAndFunctionClassMerge.ts: { index: 202,
lineNumber: 7,
column: 47,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/getAndSetAsMemberNames.ts
../TypeScript/tests//cases/compiler/getAndSetNotIdenticalType.ts
../TypeScript/tests//cases/compiler/getAndSetNotIdenticalType2.ts
../TypeScript/tests//cases/compiler/getAndSetNotIdenticalType3.ts
../TypeScript/tests//cases/compiler/getsetReturnTypes.ts
../TypeScript/tests//cases/compiler/getterControlFlowStrictNull.ts
../TypeScript/tests//cases/compiler/getterMissingReturnError.ts
../TypeScript/tests//cases/compiler/gettersAndSetters.ts
../TypeScript/tests//cases/compiler/gettersAndSettersAccessibility.ts
../TypeScript/tests//cases/compiler/gettersAndSettersErrors.ts
../TypeScript/tests//cases/compiler/gettersAndSettersTypesAgree.ts
../TypeScript/tests//cases/compiler/getterSetterNonAccessor.ts
../TypeScript/tests//cases/compiler/getterSetterNonAccessor.ts: { index: 138,
lineNumber: 5,
column: 13,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/getterThatThrowsShouldNotNeedReturn.ts
../TypeScript/tests//cases/compiler/giant.ts
../TypeScript/tests//cases/compiler/giant.ts: { index: 1178,
lineNumber: 64,
column: 16,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/global.ts
../TypeScript/tests//cases/compiler/globalIsContextualKeyword.ts
../TypeScript/tests//cases/compiler/globalThis.ts
../TypeScript/tests//cases/compiler/globalThisCapture.ts
../TypeScript/tests//cases/compiler/grammarAmbiguities1.ts
../TypeScript/tests//cases/compiler/heterogeneousArrayAndOverloads.ts
../TypeScript/tests//cases/compiler/hidingCallSignatures.ts
../TypeScript/tests//cases/compiler/hidingConstructSignatures.ts
../TypeScript/tests//cases/compiler/hidingIndexSignatures.ts
../TypeScript/tests//cases/compiler/i3.ts
../TypeScript/tests//cases/compiler/icomparable.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -126,10 +126,5 @@
"type": "Identifier",
"name": "IComparable"
- },
- "typeArguments": [
- {
- "type": "TSStringKeyword"
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,12 +1,11 @@
- interface IComparable<T> {
- compareTo(other: T);
- }
+interface IComparable<T> {
+ compareTo(other: T)
+}
- declare function sort<U extends IComparable<any>>(items: U[]): U[];
+declare function sort<U extends IComparable<any>>(items: U[]): U[]
- interface StringComparable extends IComparable<string> {
- }
\ No newline at end of file
+interface StringComparable extends IComparable {}
- var sc: StringComparable[];
+var sc: StringComparable[];
- var x = sort(sc);
+var x = sort(sc);
../TypeScript/tests//cases/compiler/identityForSignaturesWithTypeParametersAndAny.ts
../TypeScript/tests//cases/compiler/identityForSignaturesWithTypeParametersSwitched.ts
../TypeScript/tests//cases/compiler/idInProp.ts
../TypeScript/tests//cases/compiler/ifElseWithStatements1.ts
../TypeScript/tests//cases/compiler/illegalGenericWrapping1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -71,13 +71,4 @@
"name": "map"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
@@ -204,13 +195,4 @@
"name": "groupBy"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "K"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,6 +1,8 @@
interface Sequence<T> {
- each(iterator: (value: T) => void ): void;
- map<U>(iterator: (value: T) => U): Sequence<U>;
- filter(iterator: (value: T) => boolean): Sequence<T>;
- groupBy<K>(keySelector: (value: T) => K): Sequence<{ key: K; items: Sequence<T>; }>;
+ each(iterator: (value: T) => void): void,
+ map(iterator: (value: T) => U): Sequence<U>,
+ filter(iterator: (value: T) => boolean): Sequence<T>,
+ groupBy(keySelector: (value: T) => K): Sequence<
+ { key: K, items: Sequence<T> }
+ >
}
../TypeScript/tests//cases/compiler/illegalModifiersOnClassElements.ts
../TypeScript/tests//cases/compiler/illegalSuperCallsInConstructor.ts
../TypeScript/tests//cases/compiler/implementArrayInterface.ts
../TypeScript/tests//cases/compiler/implementClausePrecedingExtends.ts
../TypeScript/tests//cases/compiler/implementGenericWithMismatchedTypes.ts
../TypeScript/tests//cases/compiler/implementInterfaceAnyMemberWithVoid.ts
../TypeScript/tests//cases/compiler/implementPublicPropertyAsPrivate.ts
../TypeScript/tests//cases/compiler/implementsClauseAlreadySeen.ts
../TypeScript/tests//cases/compiler/implementsInClassExpression.ts
../TypeScript/tests//cases/compiler/implicitAnyAmbients.ts
../TypeScript/tests//cases/compiler/implicitAnyAmbients.ts: { index: 153,
lineNumber: 4,
column: 33,
message: '\'{\' or \';\' expected.' }
../TypeScript/tests//cases/compiler/implicitAnyAnyReturningFunction.ts
../TypeScript/tests//cases/compiler/implicitAnyAnyReturningFunction.ts: { index: 85,
lineNumber: 7,
column: 4,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/implicitAnyCastedValue.ts
../TypeScript/tests//cases/compiler/implicitAnyCastedValue.ts: { index: 121,
lineNumber: 7,
column: 4,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/implicitAnyDeclareFunctionExprWithoutFormalType.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareFunctionWithoutFormalType.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareFunctionWithoutFormalType2.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareMemberWithoutType.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareMemberWithoutType2.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareTypePropertyWithoutType.ts
../TypeScript/tests//cases/compiler/implicitAnyDeclareVariablesWithoutTypeAndInit.ts
../TypeScript/tests//cases/compiler/implicitAnyFromCircularInference.ts
../TypeScript/tests//cases/compiler/implicitAnyFunctionInvocationWithAnyArguements.ts
../TypeScript/tests//cases/compiler/implicitAnyFunctionInvocationWithAnyArguements.ts: { index: 921,
lineNumber: 29,
column: 26,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/implicitAnyFunctionOverloadWithImplicitAnyReturnType.ts
../TypeScript/tests//cases/compiler/implicitAnyFunctionReturnNullOrUndefined.ts
../TypeScript/tests//cases/compiler/implicitAnyGenerics.ts
../TypeScript/tests//cases/compiler/implicitAnyGenerics.ts: { index: 349,
lineNumber: 22,
column: 23,
message: 'Expression expected.' }
../TypeScript/tests//cases/compiler/implicitAnyGenericTypeInference.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -24,13 +24,4 @@
"name": "compareTo"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -2,8 +2,12 @@
interface Comparer<T> {
- compareTo<U>(x: T, y: U): U;
+ compareTo(x: T, y: U): U
}
var c: Comparer<any>;
-c = { compareTo: (x, y) => { return y; } };
\ No newline at end of file
-var r = c.compareTo(1, '');
+c = {
+ compareTo: (x, y) => {
+ return y;
+ }
+};
+var r = c.compareTo(1, "");
../TypeScript/tests//cases/compiler/implicitAnyGetAndSetAccessorWithAnyReturnType.ts
../TypeScript/tests//cases/compiler/implicitAnyInAmbientDeclaration.ts
../TypeScript/tests//cases/compiler/implicitAnyInAmbientDeclaration2.d.ts
../TypeScript/tests//cases/compiler/implicitAnyInCatch.ts
../TypeScript/tests//cases/compiler/implicitAnyNewExprLackConstructorSignature.ts
../TypeScript/tests//cases/compiler/implicitAnyWidenToAny.ts
../TypeScript/tests//cases/compiler/implicitAnyWidenToAny.ts: { index: 587,
lineNumber: 22,
column: 17,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/implicitConstParameters.ts
../TypeScript/tests//cases/compiler/implicitIndexSignatures.ts
../TypeScript/tests//cases/compiler/import_reference-exported-alias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,9 +12,8 @@
import Mod = App;
-export default Mod;
+export default Mod; // @Filename: file2.ts
-import // @Filename: file2.ts
-// @module: amd
+import // @module: amd
appJs = require("file1");
import Services = appJs.Services;
../TypeScript/tests//cases/compiler/import_reference-to-type-alias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -9,9 +9,8 @@
}
}
-}
+} // @Filename: file2.ts
-import // @Filename: file2.ts
-// @module: amd
+import // @module: amd
appJs = require("file1");
import Services = undefined.Services;
../TypeScript/tests//cases/compiler/import_unneeded-require-when-referenecing-aliased-type-throug-array.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
name: string
}export default Name;
-}
+} // @Filename: a.ts
-import // @Filename: a.ts
-//@module: amd
+import //@module: amd
/// <reference path="b.ts" />
ITest = require("ITest");
../TypeScript/tests//cases/compiler/import_var-referencing-an-imported-module-alias.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -1,8 +1,7 @@
// @Filename: host.ts
-export class Host {}
+export class Host {} // @Filename: consumer.ts
-import // @Filename: consumer.ts
-// @module: amd
+import // @module: amd
host = require("host");
../TypeScript/tests//cases/compiler/importAliasAnExternalModuleInsideAnInternalModule.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,7 @@
export function foo() {
}
-}
+} // @Filename: importAliasAnExternalModuleInsideAnInternalModule_file1.ts
-
-import // @Filename: importAliasAnExternalModuleInsideAnInternalModule_file1.ts
-r = require("./importAliasAnExternalModuleInsideAnInternalModule_file0");
+import r = require("./importAliasAnExternalModuleInsideAnInternalModule_file0");
module m_private {
//import r2 = require('m'); // would be error // no error
../TypeScript/tests//cases/compiler/importAliasWithDottedName.ts
../TypeScript/tests//cases/compiler/importAndVariableDeclarationConflict1.ts
../TypeScript/tests//cases/compiler/importAndVariableDeclarationConflict2.ts
../TypeScript/tests//cases/compiler/importAndVariableDeclarationConflict3.ts
../TypeScript/tests//cases/compiler/importAndVariableDeclarationConflict4.ts
../TypeScript/tests//cases/compiler/importAnImport.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -9,32 +9,42 @@
},
"body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "a"
- },
- "body": {
- "type": "TSModuleDeclaration",
- "name": {
- "type": "Identifier",
- "name": "b"
- },
- "body": {
- "type": "TSModuleBlock",
- "body": [
- {
- "type": "TSImportEqualsDeclaration",
- "name": {
- "type": "Identifier",
- "name": "ma"
- },
- "moduleReference": {
- "type": "Identifier",
- "name": "a"
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "a"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSModuleDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "b"
+ },
+ "body": {
+ "type": "TSModuleBlock",
+ "body": [
+ {
+ "type": "TSImportEqualsDeclaration",
+ "name": {
+ "type": "Identifier",
+ "name": "ma"
+ },
+ "moduleReference": {
+ "type": "Identifier",
+ "name": "a"
+ }
+ }
+ ]
+ }
}
- }
- ]
+ ]
+ }
}
- }
+ ]
}
},
@@ -58,19 +68,5 @@
"object": {
"type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "object": {
- "type": "JSXIdentifier",
- "name": "c"
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "a"
- }
- },
- "property": {
- "type": "JSXIdentifier",
- "name": "b"
- }
+ "name": "undefined"
},
"property": {
Index:
===================================================================
---
+++
@@ -1,7 +1,7 @@
-module c.a.b {
- import ma = a;
+module c {
+ module a { module b { import ma = a; } }
}
module m0 {
\ No newline at end of file
- import m8 = c.a.b.ma;
-}
+ import m8 = undefined.ma;
+}
../TypeScript/tests//cases/compiler/importAsBaseClass.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -5,8 +5,6 @@
return "greet";
}
-}
+} // @Filename: importAsBaseClass_1.ts
-
-import // @Filename: importAsBaseClass_1.ts
-Greeter = require("./importAsBaseClass_0");
+import Greeter = require("./importAsBaseClass_0");
class Hello extends Greeter {}
../TypeScript/tests//cases/compiler/importDecl.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -35,16 +35,13 @@
export function foo(): d {
return null;
-}
+} // @Filename: importDecl_require4.ts
-
-import // @Filename: importDecl_require4.ts
-m4 = require("./importDecl_require");
+import m4 = require("./importDecl_require");
export function foo2(): m4.d {
return null;
-}
+} // @Filename: importDecl_1.ts
-import // @Filename: importDecl_1.ts
-///<reference path='importDecl_require.ts'/>
+import ///<reference path='importDecl_require.ts'/>
///<reference path='importDecl_require1.ts'/>
///<reference path='importDecl_require2.ts'/>
@@ -59,32 +56,23 @@
export var x2 = m4.x;export var d2 = m4.d;export var f2 = m4.foo();var x3 =
m4.x;var d3 = m4.d;var f3 = m4.foo();
-}
+} //Emit global only usage
-
-import //Emit global only usage
-glo_m4 = require("./importDecl_require1");
+import glo_m4 = require("./importDecl_require1");
export var useGlo_m4_d4 = glo_m4.d;
-export var useGlo_m4_f4 = glo_m4.foo();
+export var useGlo_m4_f4 = glo_m4.foo(); //Emit even when used just in function type
+import fncOnly_m4 = require("./importDecl_require2");
+export var useFncOnly_m4_f4 = fncOnly_m4.foo(); // only used privately no need to emit
-import //Emit even when used just in function type
-fncOnly_m4 = require("./importDecl_require2");
-export var useFncOnly_m4_f4 = fncOnly_m4.foo();
-
-
-import // only used privately no need to emit
-private_m4 = require("./importDecl_require3");
+import private_m4 = require("./importDecl_require3");
export module usePrivate_m4_m1 {
var x3 = private_m4.x;var d3 = private_m4.d;var f3 = private_m4.foo();
-}
+} // Do not emit unused import
+import m5 = require("./importDecl_require4");
+export var d = m5.foo2(); // Do not emit multiple used import statements
-import // Do not emit unused import
-m5 = require("./importDecl_require4");
-export var d = m5.foo2();
-
-import // Do not emit multiple used import statements
-multiImport_m4 = require("./importDecl_require"); // Emit used
+import multiImport_m4 = require("./importDecl_require"); // Emit used
export var useMultiImport_m4_x4 = multiImport_m4.x;
export var useMultiImport_m4_d4 = multiImport_m4.d;
../TypeScript/tests//cases/compiler/importDeclarationInModuleDeclaration1.ts
../TypeScript/tests//cases/compiler/importDeclarationUsedAsTypeQuery.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,9 +4,8 @@
export class B {
id: number;
-}
+} // @Filename: importDeclarationUsedAsTypeQuery_1.ts
-import // @Filename: importDeclarationUsedAsTypeQuery_1.ts
-///<reference path='importDeclarationUsedAsTypeQuery_require.ts'/>
+import ///<reference path='importDeclarationUsedAsTypeQuery_require.ts'/>
a = require("./importDeclarationUsedAsTypeQuery_require");
export var x: typeof a;
../TypeScript/tests//cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts
../TypeScript/tests//cases/compiler/importDeclWithClassModifiers.ts
../TypeScript/tests//cases/compiler/importDeclWithDeclareModifier.ts
../TypeScript/tests//cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts
../TypeScript/tests//cases/compiler/importDeclWithExportModifier.ts
../TypeScript/tests//cases/compiler/importDeclWithExportModifierAndExportAssignment.ts
../TypeScript/tests//cases/compiler/importDeclWithExportModifierAndExportAssignmentInAmbientContext.ts
../TypeScript/tests//cases/compiler/importDeclWithExportModifierInAmbientContext.ts
../TypeScript/tests//cases/compiler/importedAliasesInTypePositions.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -12,9 +12,8 @@
}
}
-}
+} // @Filename: file2.ts
-import // @Filename: file2.ts
-// @module: amd
+import // @module: amd
RT_ALIAS = require("file1");
import ReferredTo = undefined.ReferredTo;
../TypeScript/tests//cases/compiler/importedModuleAddToGlobal.ts
../TypeScript/tests//cases/compiler/importedModuleClassNameClash.ts
../TypeScript/tests//cases/compiler/importHelpers.ts
../TypeScript/tests//cases/compiler/importHelpers.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printFunctionParams (/Users/despairblue/git/prettier/src/printer.js:2627:22)
at /Users/despairblue/git/prettier/src/printer.js:2475:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at printMethod (/Users/despairblue/git/prettier/src/printer.js:2474:14)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:437:18)
../TypeScript/tests//cases/compiler/importHelpersAmd.ts
../TypeScript/tests//cases/compiler/importHelpersDeclarations.ts
../TypeScript/tests//cases/compiler/importHelpersES6.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -4,5 +4,5 @@
// @filename: a.ts
declare var dec: any;
-dec
+dec;
export class A {}
../TypeScript/tests//cases/compiler/importHelpersInAmbientContext.ts
../TypeScript/tests//cases/compiler/importHelpersInIsolatedModules.ts
../TypeScript/tests//cases/compiler/importHelpersInIsolatedModules.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printFunctionParams (/Users/despairblue/git/prettier/src/printer.js:2627:22)
at /Users/despairblue/git/prettier/src/printer.js:2475:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at printMethod (/Users/despairblue/git/prettier/src/printer.js:2474:14)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:437:18)
../TypeScript/tests//cases/compiler/importHelpersNoHelpers.ts
../TypeScript/tests//cases/compiler/importHelpersNoHelpers.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printFunctionParams (/Users/despairblue/git/prettier/src/printer.js:2627:22)
at /Users/despairblue/git/prettier/src/printer.js:2475:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at printMethod (/Users/despairblue/git/prettier/src/printer.js:2474:14)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:437:18)
../TypeScript/tests//cases/compiler/importHelpersNoModule.ts
../TypeScript/tests//cases/compiler/importHelpersNoModule.ts: TypeError: Cannot read property 'type' of undefined
at genericPrint (/Users/despairblue/git/prettier/src/printer.js:82:37)
at comments.printComments.p (/Users/despairblue/git/prettier/src/printer.js:4076:12)
at Object.printComments (/Users/despairblue/git/prettier/src/comments.js:898:17)
at printGenerically (/Users/despairblue/git/prettier/src/printer.js:4074:21)
at FastPath.map (/Users/despairblue/git/prettier/src/fast-path.js:173:19)
at printFunctionParams (/Users/despairblue/git/prettier/src/printer.js:2627:22)
at /Users/despairblue/git/prettier/src/printer.js:2475:18
at FastPath.call (/Users/despairblue/git/prettier/src/fast-path.js:119:16)
at printMethod (/Users/despairblue/git/prettier/src/printer.js:2474:14)
at genericPrintNoParens (/Users/despairblue/git/prettier/src/printer.js:437:18)
../TypeScript/tests//cases/compiler/importHelpersOutFile.ts
../TypeScript/tests//cases/compiler/importHelpersSystem.ts
../TypeScript/tests//cases/compiler/importInsideModule.ts
../TypeScript/tests//cases/compiler/importInTypePosition.ts
../TypeScript/tests//cases/compiler/importOnAliasedIdentifiers.ts
../TypeScript/tests//cases/compiler/importShadowsGlobalName.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,7 @@
// @Filename:Foo.ts
class Foo {}
-export default Foo;
+export default Foo; // @Filename: Bar.ts
-
-import // @Filename: Bar.ts
-Error = require("Foo");
+import Error = require("Foo");
class Bar extends Error {}
export default Bar;
../TypeScript/tests//cases/compiler/importsInAmbientModules1.ts
../TypeScript/tests//cases/compiler/importsInAmbientModules2.ts
../TypeScript/tests//cases/compiler/importsInAmbientModules3.ts
../TypeScript/tests//cases/compiler/importUsedInExtendsList1.ts
prettier(input) !== prettier(prettier(input))
Index:
===================================================================
---
+++
@@ -3,9 +3,8 @@
export class Super {
foo: string;
-}
+} // @Filename: importUsedInExtendsList1_1.ts
-import // @Filename: importUsedInExtendsList1_1.ts
-///<reference path='importUsedInExtendsList1_require.ts'/>
+import ///<reference path='importUsedInExtendsList1_require.ts'/>
foo = require("./importUsedInExtendsList1_require");
class Sub extends foo.Super {}
../TypeScript/tests//cases/compiler/importWithTrailingSlash.ts
../TypeScript/tests//cases/compiler/importWithTrailingSlash_noResolve.ts
../TypeScript/tests//cases/compiler/incompatibleAssignmentOfIdenticallyNamedTypes.ts
../TypeScript/tests//cases/compiler/incompatibleExports1.ts
../TypeScript/tests//cases/compiler/incompatibleExports2.ts
../TypeScript/tests//cases/compiler/incompatibleGenericTypes.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -24,13 +24,4 @@
"name": "m1"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "U"
- }
- }
- ],
"parameters": [
{
Index:
===================================================================
---
+++
@@ -1,10 +1,7 @@
-
interface I1<T> {
+ m1(callback: (p: T) => U): I1<U>
+}
- m1<U>(callback: (p: T) => U): I1<U>;
+var v1: I1<boolean>;
-}
-
\ No newline at end of file
-var v1: I1<boolean>;
-
-var v2: I1<number> = v1;
+var v2: I1<number> = v1;
../TypeScript/tests//cases/compiler/incompatibleTypes.ts
../TypeScript/tests//cases/compiler/incompleteDottedExpressionAtEOF.ts
../TypeScript/tests//cases/compiler/incompleteDottedExpressionAtEOF.ts: { index: 63,
lineNumber: 2,
column: 17,
message: 'Identifier expected.' }
../TypeScript/tests//cases/compiler/incompleteObjectLiteral1.ts
../TypeScript/tests//cases/compiler/incompleteObjectLiteral1.ts: { index: 13,
lineNumber: 1,
column: 13,
message: '\':\' expected.' }
../TypeScript/tests//cases/compiler/incorrectClassOverloadChain.ts
../TypeScript/tests//cases/compiler/incrementOnTypeParameter.ts
../TypeScript/tests//cases/compiler/indexClassByNumber.ts
../TypeScript/tests//cases/compiler/indexedAccessRelation.ts
../TypeScript/tests//cases/compiler/indexedAccessTypeConstraints.ts
../TypeScript/tests//cases/compiler/indexedAccessTypeConstraints.ts: { index: 104,
lineNumber: 10,
column: 10,
message: '\',\' expected.' }
../TypeScript/tests//cases/compiler/indexer.ts
../TypeScript/tests//cases/compiler/indexer2.ts
../TypeScript/tests//cases/compiler/indexer2.ts: { index: 207,
lineNumber: 6,
column: 25,
message: 'JSX element \'IDirectChildrenMap\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/indexer2A.ts
../TypeScript/tests//cases/compiler/indexer2A.ts: { index: 239,
lineNumber: 7,
column: 25,
message: 'JSX element \'IDirectChildrenMap\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/indexer3.ts
../TypeScript/tests//cases/compiler/indexerA.ts
../TypeScript/tests//cases/compiler/indexerAsOptional.ts
../TypeScript/tests//cases/compiler/indexerAssignability.ts
../TypeScript/tests//cases/compiler/indexerConstraints.ts
../TypeScript/tests//cases/compiler/indexerConstraints2.ts
../TypeScript/tests//cases/compiler/indexerReturningTypeParameter1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -15,13 +15,4 @@
"name": "groupBy"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ],
"parameters": [],
"typeAnnotation": {
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
interface f {
- groupBy<T>(): { [key: string]: T[]; };
+ groupBy(): { [key: string]: T[] }
}
var a: f;
@@ -6,8 +6,8 @@
class c {
- groupBy<T>(): { [key: string]: T[]; } {
- return null;
- }
+ groupBy<T>(): { [key: string]: T[] } {
+ return null;
+ }
\ No newline at end of file
}
var a2: c;
-var r2 = a2.groupBy();
+var r2 = a2.groupBy();
../TypeScript/tests//cases/compiler/indexerSignatureWithRestParam.ts
../TypeScript/tests//cases/compiler/indexIntoArraySubclass.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -27,14 +27,5 @@
"type": "Identifier",
"name": "Array"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,4 +1,4 @@
-interface Foo2<T> extends Array<T> { }
+interface Foo2<T> extends Array {}
var x2: Foo2<string>;
var r = x2[0]; // string
\ No newline at end of file
-r = 0; //error
+r = 0; //error
../TypeScript/tests//cases/compiler/indexIntoEnum.ts
../TypeScript/tests//cases/compiler/indexSignatureMustHaveTypeAnnotation.ts
../TypeScript/tests//cases/compiler/indexSignatureMustHaveTypeAnnotation.ts: { index: 101,
lineNumber: 5,
column: 0,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/indexSignaturesInferentialTyping.ts
../TypeScript/tests//cases/compiler/indexSignatureTypeCheck.ts
../TypeScript/tests//cases/compiler/indexSignatureTypeCheck.ts: { index: 173,
lineNumber: 10,
column: 17,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/indexSignatureTypeCheck2.ts
../TypeScript/tests//cases/compiler/indexSignatureTypeCheck2.ts: { index: 169,
lineNumber: 10,
column: 17,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/indexSignatureWithAccessibilityModifier.ts
../TypeScript/tests//cases/compiler/indexSignatureWithInitializer.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -10,17 +10,18 @@
"members": [
{
- "type": "TSPropertySignature",
- "name": {
- "type": "AssignmentExpression",
- "operator": "=",
- "left": {
- "type": "Identifier",
- "name": "x"
- },
- "right": {
- "type": "Literal",
- "value": ""
+ "type": "TSCallSignature",
+ "parameters": [
+ {
+ "type": "AssignmentPattern",
+ "left": {
+ "type": "Identifier",
+ "name": "x"
+ },
+ "right": {
+ "type": "Literal",
+ "value": ""
+ }
}
- },
+ ],
"typeAnnotation": {
"type": "TypeAnnotation",
Index:
===================================================================
---
+++
@@ -1,8 +1,8 @@
// These used to be indexers, now they are computed properties
interface I {
- [x = '']: string;
+ (x = ""): string
}
class C {
- [x = 0]: string
\ No newline at end of file
-}
+ [(x = 0)]: string;
+}
../TypeScript/tests//cases/compiler/indexSignatureWithInitializer1.ts
../TypeScript/tests//cases/compiler/indexSignatureWithoutTypeAnnotation1..ts
../TypeScript/tests//cases/compiler/indexSignatureWithoutTypeAnnotation1.ts
../TypeScript/tests//cases/compiler/indexSignatureWithoutTypeAnnotation1.ts: { index: 27, lineNumber: 3, column: 0, message: 'Type expected.' }
../TypeScript/tests//cases/compiler/indexTypeCheck.ts
../TypeScript/tests//cases/compiler/indexTypeCheck.ts: { index: 832,
lineNumber: 58,
column: 11,
message: '\'}\' expected.' }
../TypeScript/tests//cases/compiler/indexWithoutParamType.ts
../TypeScript/tests//cases/compiler/indexWithoutParamType.ts: { index: 14,
lineNumber: 1,
column: 14,
message: 'Type expected.' }
../TypeScript/tests//cases/compiler/indexWithoutParamType2.ts
../TypeScript/tests//cases/compiler/indexWithUndefinedAndNull.ts
../TypeScript/tests//cases/compiler/indexWithUndefinedAndNullStrictNullChecks.ts
../TypeScript/tests//cases/compiler/indirectSelfReference.ts
../TypeScript/tests//cases/compiler/indirectSelfReferenceGeneric.ts
../TypeScript/tests//cases/compiler/inferenceFromParameterlessLambda.ts
../TypeScript/tests//cases/compiler/inferenceLimit.ts
../TypeScript/tests//cases/compiler/inferentiallyTypingAnEmptyArray.ts
../TypeScript/tests//cases/compiler/inferentialTypingObjectLiteralMethod1.ts
../TypeScript/tests//cases/compiler/inferentialTypingObjectLiteralMethod2.ts
../TypeScript/tests//cases/compiler/inferentialTypingUsingApparentType1.ts
../TypeScript/tests//cases/compiler/inferentialTypingUsingApparentType2.ts
../TypeScript/tests//cases/compiler/inferentialTypingUsingApparentType3.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionType.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionType2.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionTypeNested.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionTypeSyntacticScenarios.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionTypeSyntacticScenarios.ts: { index: 575,
lineNumber: 29,
column: 13,
message: 'JSX element \'typeof\' has no corresponding closing tag.' }
../TypeScript/tests//cases/compiler/inferentialTypingWithFunctionTypeZip.ts
../TypeScript/tests//cases/compiler/inferentialTypingWithObjectLiteralProperties.ts
../TypeScript/tests//cases/compiler/inferParameterWithMethodCallInitializer.ts
../TypeScript/tests//cases/compiler/inferredFunctionReturnTypeIsEmptyType.ts
../TypeScript/tests//cases/compiler/inferringAnyFunctionType1.ts
../TypeScript/tests//cases/compiler/inferringAnyFunctionType2.ts
../TypeScript/tests//cases/compiler/inferringAnyFunctionType3.ts
../TypeScript/tests//cases/compiler/inferringAnyFunctionType4.ts
../TypeScript/tests//cases/compiler/inferringAnyFunctionType5.ts
../TypeScript/tests//cases/compiler/inferSecondaryParameter.ts
../TypeScript/tests//cases/compiler/inferSetterParamType.ts
../TypeScript/tests//cases/compiler/inferTypeArgumentsInSignatureWithRestParameters.ts
../TypeScript/tests//cases/compiler/infiniteExpandingTypeThroughInheritanceInstantiation.ts
../TypeScript/tests//cases/compiler/infiniteExpandingTypeThroughInheritanceInstantiation.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
../TypeScript/tests//cases/compiler/infinitelyExpandingBaseTypes1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -124,14 +124,5 @@
"type": "Identifier",
"name": "A"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
},
{
@@ -140,14 +131,5 @@
"type": "Identifier",
"name": "B"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,13 +1,9 @@
-interface A<T>
-{
- x : A<A<T>>
+interface A<T> {
+ x: A<A<T>>
}
-
-interface B<T>
-{
- x : B<T>
+
+interface B<T> {
+ x: B<T>
}
-
-interface C<T> extends A<T>, B<T> { }
-
+interface C<T> extends A, B {}
../TypeScript/tests//cases/compiler/infinitelyExpandingBaseTypes2.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingOverloads.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingTypeAssignability.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -62,41 +62,5 @@
"type": "Identifier",
"name": "A"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "B"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "B"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "B"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
+ }
}
]
@@ -130,41 +94,5 @@
"type": "Identifier",
"name": "A"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "C"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "C"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "C"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,10 +1,10 @@
interface A<T> {
- x : T
+ x: T
}
-
-interface B<T> extends A<B<B<B<T>>>> { }
-interface C<T> extends A<C<C<C<T>>>> { }
-
-var x : B<string>
-var y : C<string> = x
+interface B<T> extends A {}
+
+interface C<T> extends A {}
+
+var x: B<string>;
+var y: C<string> = x;
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes1.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes2.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -80,14 +80,5 @@
"type": "Identifier",
"name": "Foo"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,12 +1,12 @@
interface Foo<T> {
- x: Foo<Foo<T>>;
-}
+ x: Foo<Foo<T>>
+}
-interface Bar<T> extends Foo<T> {
- y: string;
+interface Bar<T> extends Foo {
+ y: string
}
function f(p: Foo<number>) {
- console.log(p);
+ console.log(p);
}
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes3.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes3.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes4.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes4.ts: Error: did not recognize object of type "TSTypeParameter"
at Object.getFieldNames (/Users/despairblue/git/prettier/node_modules/ast-types/lib/types.js:663:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:53:19)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at getSortedChildNodes (/Users/despairblue/git/prettier/src/comments.js:66:5)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:76:20)
at decorateComment (/Users/despairblue/git/prettier/src/comments.js:91:7)
at comments.forEach (/Users/despairblue/git/prettier/src/comments.js:135:5)
at Array.forEach (native)
at Object.attach (/Users/despairblue/git/prettier/src/comments.js:134:12)
at attachComments (/Users/despairblue/git/prettier/index.js:51:14)
at format (/Users/despairblue/git/prettier/index.js:81:23)
../TypeScript/tests//cases/compiler/infinitelyExpandingTypes5.ts
../TypeScript/tests//cases/compiler/infinitelyExpandingTypesNonGenericBase.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -212,14 +212,5 @@
"type": "Identifier",
"name": "OptionsBase"
- },
- "typeArguments": [
- {
- "type": "TSTypeReference",
- "typeName": {
- "type": "Identifier",
- "name": "T"
- }
- }
- ]
+ }
}
]
Index:
===================================================================
---
+++
@@ -1,23 +1,19 @@
class Functionality<V> {
- property: Options<V>;
+ property: Options<V>;
}
-class Base {
-}
+class Base {}
class A<T> extends Base {
- options: Options<Functionality<T>[]>;
+ options: Options<Functionality<T>[]>;
}
interface OptionsBase<T> {
- Options: Options<T>;
+ Options: Options<T>
}
-interface Options<T> extends OptionsBase<T> {
-}
+interface Options<T> extends OptionsBase {}
+function o(type: new () => Base) {}
-function o(type: new () => Base) {
-}
-
o(A);
../TypeScript/tests//cases/compiler/infinitelyGenerativeInheritance1.ts
ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -42,13 +42,4 @@
"name": "zip"
},
- "typeParameters": [
- {
- "type": "TSTypeParameter",
- "name": {
- "type": "Identifier",
- "name": "S"
- }
- }
- ],
"parameters": [
{
@@ -155,14 +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment