diff --git a/src/compiler/factory/nodeFactory.ts b/src/compiler/factory/nodeFactory.ts index e780b41dd4186..842f72a5deb72 100644 --- a/src/compiler/factory/nodeFactory.ts +++ b/src/compiler/factory/nodeFactory.ts @@ -58,11 +58,10 @@ import { WhileStatement, WithStatement, YieldExpression, } from "../types"; import { - findUseStrictPrologue, - getEmitFlags, getTextOfIdentifierOrLiteral, hasInvalidEscape, hasStaticModifier, hasSyntacticModifier, - isCustomPrologue, isHoistedFunction, isHoistedVariableStatement, isLogicalOrCoalescingAssignmentOperator, isOuterExpression, isPrologueDirective, - isSuperProperty, isThisIdentifier, modifiersToFlags, Mutable, nodeIsSynthesized, objectAllocator, pseudoBigIntToString, - setEachParent, setParent, setTextRangePosEnd, setTextRangePosWidth, skipOuterExpressions, skipParentheses, + findUseStrictPrologue, getEmitFlags, getTextOfIdentifierOrLiteral, hasInvalidEscape, hasStaticModifier, hasSyntacticModifier, + isCustomPrologue, isHoistedFunction, isHoistedVariableStatement, isLogicalOrCoalescingAssignmentOperator, isOuterExpression, + isPrologueDirective, isSuperProperty, isThisIdentifier, modifiersToFlags, Mutable, nodeIsSynthesized, objectAllocator, + pseudoBigIntToString, setEachParent, setParent, setTextRangePosEnd, setTextRangePosWidth, skipOuterExpressions, skipParentheses, } from "../utilities"; import { escapeLeadingUnderscores, getNameOfDeclaration, idText, isAssignmentPattern, isCallChain, isElementAccessChain, diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 8de3505466571..3a56c8a5dbfde 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -95,8 +95,8 @@ import { getJSDocTypeParameterTagsNoCache, getJSDocTypeTag, getNameOfDeclaration, getParseTreeNode, hasInitializer, hasJSDocNodes, idText, isAccessor, isBindingPattern, isClassElement, isClassLike, isDeclaration, isFunctionLike, isFunctionLikeDeclaration, isFunctionLikeOrClassStaticBlockDeclaration, isJSDocLinkLike, isJSDocNode, isJSDocPropertyLikeTag, isJSDocTag, isJsxChild, - isJsxOpeningLikeElement, isLeftHandSideExpression, isMemberName, isMethodOrAccessor, isNamedDeclaration, isParameterPropertyDeclaration, - isPropertyName, isStringLiteralLike, isTypeElement, isTypeNode, unescapeLeadingUnderscores, + isJsxOpeningLikeElement, isLeftHandSideExpression, isMemberName, isMethodOrAccessor, isNamedDeclaration, + isParameterPropertyDeclaration, isPropertyName, isStringLiteralLike, isTypeElement, isTypeNode, unescapeLeadingUnderscores, } from "./utilitiesPublic"; /** @internal */ diff --git a/src/services/utilities.ts b/src/services/utilities.ts index a9df45565b6f2..b09c27fbf9143 100644 --- a/src/services/utilities.ts +++ b/src/services/utilities.ts @@ -57,13 +57,14 @@ import { SourceFileLike, SpreadElement, StringLiteral, StringLiteralLike, Symbol, SymbolAccessibility, SymbolFlags, SymbolFormatFlags, SymbolTracker, SyntaxKind, SyntaxList, TaggedTemplateExpression, TemplateExpression, TemplateLiteralToken, TemplateSpan, TextRange, TextSpan, Token, TransientSymbol, Type, TypeChecker, TypeFormatFlags, TypeNode, TypeOfExpression, TypeQueryNode, - UserPreferences, VariableDeclaration, VoidExpression, YieldExpression, ParameterDeclaration, PropertySignature, PropertyDeclaration, NamedDeclaration, ForInOrOfStatement, + UserPreferences, VariableDeclaration, VoidExpression, YieldExpression, ParameterDeclaration, PropertySignature, PropertyDeclaration, + NamedDeclaration, ForInOrOfStatement, } from "../compiler/types"; import { createRange, defaultMaximumTruncationLength, directoryProbablyExists, ensureScriptKind, escapeString, formatStringFromArgs, getAssignmentDeclarationKind, getEmitScriptTarget, getExternalModuleImportEqualsDeclarationExpression, getIndentString, - getLastChild, getLeadingCommentRangesOfNode, getLocaleSpecificMessage, getRootDeclaration, getSourceFileOfNode, getSpanOfTokenAtPosition, - getTextOfIdentifierOrLiteral, getTextOfNode, hasSyntacticModifier, identifierIsThisKeyword, indexOfNode, + getLastChild, getLeadingCommentRangesOfNode, getLocaleSpecificMessage, getRootDeclaration, getSourceFileOfNode, + getSpanOfTokenAtPosition, getTextOfIdentifierOrLiteral, getTextOfNode, hasSyntacticModifier, identifierIsThisKeyword, indexOfNode, isAmbientModule, isAnyImportSyntax, isDeclarationName, isExpressionNode, isExternalModuleImportEqualsDeclaration, isFileLevelUniqueName, isFunctionBlock, isGlobalScopeAugmentation, isImportCall, isInJSFile, isInternalModuleImportEqualsDeclaration, isJSDocTypeAlias, isKeyword, isLet, isPartOfTypeNode, isPropertyNameLiteral, isRequireCall, isRequireVariableStatement, @@ -75,10 +76,10 @@ import { getJSDocReturnType, getJSDocType, getNameOfDeclaration, idText, isBreakOrContinueStatement, isCallOrNewExpression, isDeclaration, isEntityName, - isExpression, isForInOrOfStatement, isFunctionLike, isFunctionLikeDeclaration, isImportOrExportSpecifier, isJSDocCommentContainingNode, isJSDocLinkLike, isJSDocTag, - isJsxOpeningLikeElement, isModifier, isNamedDeclaration, isOptionalChain, isOptionalChainRoot, isStringLiteralLike, - isStringTextContainingNode, isTemplateLiteralKind, isToken, isTypeElement, isTypeNode, textSpanContainsPosition, - textSpanContainsTextSpan, textSpanEnd, unescapeLeadingUnderscores, + isExpression, isForInOrOfStatement, isFunctionLike, isFunctionLikeDeclaration, isImportOrExportSpecifier, + isJSDocCommentContainingNode, isJSDocLinkLike, isJSDocTag, isJsxOpeningLikeElement, isModifier, isNamedDeclaration, + isOptionalChain, isOptionalChainRoot, isStringLiteralLike, isStringTextContainingNode, isTemplateLiteralKind, isToken, + isTypeElement, isTypeNode, textSpanContainsPosition, textSpanContainsTextSpan, textSpanEnd, unescapeLeadingUnderscores, } from "../compiler/utilitiesPublic"; import { visitEachChild } from "../compiler/visitorPublic"; import { moduleSymbolToValidIdentifier } from "./codefixes/importAdder"; diff --git a/src/tsconfig-base.json b/src/tsconfig-base.json index ba9ec5b40cecd..d0efb21a159c0 100644 --- a/src/tsconfig-base.json +++ b/src/tsconfig-base.json @@ -14,7 +14,7 @@ "sourceMap": true, "composite": true, "noEmitOnError": true, - "emitDeclarationOnly": false, // DO NOT COMMIT + "emitDeclarationOnly": true, "strictNullChecks": true, "noImplicitAny": true,