mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-11 10:46:28 -05:00
merge conflict fixes; remove comments
This commit is contained in:
@@ -1311,9 +1311,6 @@ namespace ts {
|
||||
return emitSnippetNode(hint, node, snippet);
|
||||
}
|
||||
}
|
||||
// else {
|
||||
// Debug.assert(!getSnippetElement(node), "A snippet cannot exist inside another snippet.");
|
||||
// }
|
||||
if (hint === EmitHint.SourceFile) return emitSourceFile(cast(node, isSourceFile));
|
||||
if (hint === EmitHint.IdentifierName) return emitIdentifier(cast(node, isIdentifier));
|
||||
if (hint === EmitHint.JsxAttributeValue) return emitLiteral(cast(node, isStringLiteral), /*jsxAttributeEscape*/ true);
|
||||
@@ -4547,7 +4544,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function noEscapeWrite(s: string) { // >> update
|
||||
function noEscapeWrite(s: string) {
|
||||
writer.write(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -990,8 +990,20 @@ namespace ts.Completions {
|
||||
}
|
||||
}
|
||||
|
||||
function originToCompletionEntryData(origin: SymbolOriginInfoExport): CompletionEntryData | undefined {
|
||||
return {
|
||||
function originToCompletionEntryData(origin: SymbolOriginInfoExport | SymbolOriginInfoResolvedExport): CompletionEntryData | undefined {
|
||||
const ambientModuleName = origin.fileName ? undefined : stripQuotes(origin.moduleSymbol.name);
|
||||
const isPackageJsonImport = origin.isFromPackageJson ? true : undefined;
|
||||
if (originIsResolvedExport(origin)) {
|
||||
const resolvedData: CompletionEntryDataResolved = {
|
||||
exportName: origin.exportName,
|
||||
moduleSpecifier: origin.moduleSpecifier,
|
||||
ambientModuleName,
|
||||
fileName: origin.fileName,
|
||||
isPackageJsonImport,
|
||||
};
|
||||
return resolvedData;
|
||||
}
|
||||
const unresolvedData: CompletionEntryDataUnresolved = {
|
||||
exportName: origin.exportName,
|
||||
exportMapKey: origin.exportMapKey,
|
||||
fileName: origin.fileName,
|
||||
|
||||
Reference in New Issue
Block a user