| Modifier and Type | Method and Description |
|---|---|
static BallerinaFile |
LSCompiler.compileContent(String content,
Path filePath,
CompilerPhase phase,
WorkspaceDocumentManager documentManager,
boolean preserveWhitespace) |
static List<BLangPackage> |
LSCompiler.getBLangPackage(LSContext context,
WorkspaceDocumentManager docManager,
boolean preserveWhitespace,
Class customErrorStrategy,
boolean compileFullProject)
Get the BLangPackage for a given program.
|
static CompilerContext |
LSCompiler.prepareCompilerContext(PackageID packageID,
PackageRepository packageRepository,
LSDocument sourceRoot,
boolean preserveWhitespace,
WorkspaceDocumentManager documentManager)
Prepare the compiler context.
|
static CompilerContext |
LSCompiler.prepareCompilerContext(PackageID packageID,
PackageRepository packageRepository,
LSDocument sourceRoot,
boolean preserveWhitespace,
WorkspaceDocumentManager documentManager,
CompilerPhase compilerPhase)
Prepare the compiler context.
|
| Constructor and Description |
|---|
LSCompiler(WorkspaceDocumentManager documentManager) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gson.JsonObject |
TextDocumentFormatUtil.getAST(org.eclipse.lsp4j.DocumentFormattingParams params,
WorkspaceDocumentManager documentManager,
LSContext context)
Get the AST for the current text document's content.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ExtendedWorkspaceDocumentManagerImpl
This class provides an abstraction layer for a given filePath.
|
class |
WorkspaceDocumentManagerImpl
An in-memory document manager that keeps dirty files in-memory and will match the collection of files currently open
in tool's workspace.
|
| Modifier and Type | Method and Description |
|---|---|
static LangServerFSProgramDirectory |
LangServerFSProgramDirectory.getInstance(CompilerContext context,
Path projectDirPath,
WorkspaceDocumentManager documentManager) |
static LangServerFSProjectDirectory |
LangServerFSProjectDirectory.getInstance(CompilerContext context,
Path projectDirPath,
WorkspaceDocumentManager documentManager) |
| Constructor and Description |
|---|
LangServerFSProgramDirectory(CompilerContext context,
Path programDirPath,
WorkspaceDocumentManager documentManager) |
WorkspacePackageRepository(String programDirRoot,
WorkspaceDocumentManager documentManager) |
Copyright © 2018 WSO2. All rights reserved.