Module

x/ts_morph/ts_morph.js>LanguageService

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

Constructors

new
LanguageService(params)

Properties

readonly
compilerObject

Methods

_getFilledUserPreferences(userPreferences)
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?,
)