Class SupportedLanguages
The languages the platform serves.
public static class SupportedLanguages
- Inheritance
-
SupportedLanguages
- Inherited Members
Properties
All
Every language the platform serves.
public static IReadOnlyList<SupportedLanguage> All { get; }
Property Value
BASIC
The platform's BASIC, which an interactive shell is written in.
public static SupportedLanguage BASIC { get; }
Property Value
Remarks
Its source is a .rdc file: a program of the shell, a text file of lines. It is not a .bas, which is a module of the BASIC of Visual Basic - a file with
procedures in it, and a header - and which this is not.
DocumentSelector
The selector of the documents of every language the platform serves, by their files: a client names a document's language its own way, so what selects a document is the file it is.
public static TextDocumentSelector DocumentSelector { get; }
Property Value
RDVBA
RD-VBA: the platform's own implementation of MS-VBAL, and the default.
public static SupportedLanguage RDVBA { get; }
Property Value
VB6
VB6.
public static SupportedLanguage VB6 { get; }
Property Value
Methods
Get(string?)
The language with the given identifier.
public static SupportedLanguage Get(string? id)
Parameters
Returns
Exceptions
- InvalidOperationException
The platform serves no such language.
OfProject(RDCoreProject)
The language a project's file says the project is written in: VB6 for a project imported from a Visual Basic 6 project
(SourceProject, a .vbp).
public static SupportedLanguage? OfProject(RDCoreProject project)
Parameters
projectRDCoreProjectThe project.
Returns
- SupportedLanguage
The language, or null when the project's file says none.
Remarks
A server takes it when its client names no language in the initializationOptions of its initialize request
(Language): what the client names wins. A project that was not imported from a .vbp says
no language, and the server's own setting stands.
TryGet(string?, out SupportedLanguage)
The language with the given identifier.
public static bool TryGet(string? id, out SupportedLanguage language)
Parameters
idstringThe identifier, as Id; compared without regard to case.
languageSupportedLanguageThe language, when there is one by that identifier.