Module

x/ts_morph/ts_morph.js>LanguageService

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
class LanguageService
import { LanguageService } from "https://dotland.deno.dev/x/ts_morph@22.0.0/ts_morph.js";

Constructors

new
LanguageService(params)

Properties

readonly
compilerObject

Methods

findReferencesAtPosition(sourceFile, pos)
findRenameLocations(node, options?)
getCodeFixesAtPosition(
filePathOrSourceFile,
start,
end,
errorCodes,
formatOptions?,
preferences?,
)
getCombinedCodeFix(
filePathOrSourceFile,
fixId,
formatSettings?,
preferences?,
)
getDefinitionsAtPosition(sourceFile, pos)
getEditsForRefactor(
filePathOrSourceFile,
formatSettings,
positionOrRange,
refactorName,
actionName,
preferences?,
)
getEmitOutput(filePathOrSourceFile, emitOnlyDtsFiles)
getFormattedDocumentText(filePath, formatSettings)
getFormattingEditsForDocument(filePath, formatSettings)
getFormattingEditsForRange(
filePath,
range,
formatSettings,
)
getIdentationAtPosition(
filePathOrSourceFile,
position,
settings,
)
getSuggestionDiagnostics(filePathOrSourceFile)
organizeImports(
filePathOrSourceFile,
formatSettings?,
userPreferences?,
)