Skip to main content
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://deno.land/x/ts_morph@15.1.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?,
)