Convert spaces to tabs
This commit is contained in:
parent
def0228263
commit
47113a4a2d
158
messages.d
158
messages.d
|
@ -23,45 +23,45 @@ module messages;
|
||||||
*/
|
*/
|
||||||
enum CompletionKind : char
|
enum CompletionKind : char
|
||||||
{
|
{
|
||||||
/// Invalid completion kind. This is used internally and will never
|
/// Invalid completion kind. This is used internally and will never
|
||||||
/// be returned in a completion response.
|
/// be returned in a completion response.
|
||||||
dummy = '?',
|
dummy = '?',
|
||||||
|
|
||||||
/// class names
|
/// class names
|
||||||
className = 'c',
|
className = 'c',
|
||||||
|
|
||||||
/// interface names
|
/// interface names
|
||||||
interfaceName = 'i',
|
interfaceName = 'i',
|
||||||
|
|
||||||
/// structure names
|
/// structure names
|
||||||
structName = 's',
|
structName = 's',
|
||||||
|
|
||||||
/// union name
|
/// union name
|
||||||
unionName = 'u',
|
unionName = 'u',
|
||||||
|
|
||||||
/// variable name
|
/// variable name
|
||||||
variableName = 'v',
|
variableName = 'v',
|
||||||
|
|
||||||
/// member variable
|
/// member variable
|
||||||
memberVariableName = 'm',
|
memberVariableName = 'm',
|
||||||
|
|
||||||
/// keyword, built-in version, scope statement
|
/// keyword, built-in version, scope statement
|
||||||
keyword = 'k',
|
keyword = 'k',
|
||||||
|
|
||||||
/// function or method
|
/// function or method
|
||||||
functionName = 'f',
|
functionName = 'f',
|
||||||
|
|
||||||
/// enum name
|
/// enum name
|
||||||
enumName = 'g',
|
enumName = 'g',
|
||||||
|
|
||||||
/// enum member
|
/// enum member
|
||||||
enumMember = 'e',
|
enumMember = 'e',
|
||||||
|
|
||||||
/// package name
|
/// package name
|
||||||
packageName = 'P',
|
packageName = 'P',
|
||||||
|
|
||||||
/// module name
|
/// module name
|
||||||
moduleName = 'M',
|
moduleName = 'M',
|
||||||
|
|
||||||
/// array
|
/// array
|
||||||
array = 'a',
|
array = 'a',
|
||||||
|
@ -84,21 +84,21 @@ enum CompletionKind : char
|
||||||
*/
|
*/
|
||||||
enum CompletionType : string
|
enum CompletionType : string
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The completion list contains a listing of identifier/kind pairs.
|
* The completion list contains a listing of identifier/kind pairs.
|
||||||
*/
|
*/
|
||||||
identifiers = "identifiers",
|
identifiers = "identifiers",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The auto-completion list consists of a listing of functions and their
|
* The auto-completion list consists of a listing of functions and their
|
||||||
* parameters.
|
* parameters.
|
||||||
*/
|
*/
|
||||||
calltips = "calltips",
|
calltips = "calltips",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The response contains the location of a symbol declaration.
|
* The response contains the location of a symbol declaration.
|
||||||
*/
|
*/
|
||||||
location = "location",
|
location = "location",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The response contains documentation comments for the symbol.
|
* The response contains documentation comments for the symbol.
|
||||||
|
@ -115,17 +115,17 @@ enum RequestKind : ubyte
|
||||||
/// Autocompletion
|
/// Autocompletion
|
||||||
autocomplete = 0b00000001,
|
autocomplete = 0b00000001,
|
||||||
/// Clear the completion cache
|
/// Clear the completion cache
|
||||||
clearCache = 0b00000010,
|
clearCache = 0b00000010,
|
||||||
/// Add import directory to server
|
/// Add import directory to server
|
||||||
addImport = 0b00000100,
|
addImport = 0b00000100,
|
||||||
/// Shut down the server
|
/// Shut down the server
|
||||||
shutdown = 0b00001000,
|
shutdown = 0b00001000,
|
||||||
/// Get declaration location of given symbol
|
/// Get declaration location of given symbol
|
||||||
symbolLocation = 0b00010000,
|
symbolLocation = 0b00010000,
|
||||||
/// Get the doc comments for the symbol
|
/// Get the doc comments for the symbol
|
||||||
doc = 0b00100000,
|
doc = 0b00100000,
|
||||||
/// Query server status
|
/// Query server status
|
||||||
query = 0b01000000,
|
query = 0b01000000,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -133,30 +133,30 @@ enum RequestKind : ubyte
|
||||||
*/
|
*/
|
||||||
struct AutocompleteRequest
|
struct AutocompleteRequest
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* File name used for error reporting
|
* File name used for error reporting
|
||||||
*/
|
*/
|
||||||
string fileName;
|
string fileName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command coming from the client
|
* Command coming from the client
|
||||||
*/
|
*/
|
||||||
RequestKind kind;
|
RequestKind kind;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Paths to be searched for import files
|
* Paths to be searched for import files
|
||||||
*/
|
*/
|
||||||
string[] importPaths;
|
string[] importPaths;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The source code to auto complete
|
* The source code to auto complete
|
||||||
*/
|
*/
|
||||||
ubyte[] sourceCode;
|
ubyte[] sourceCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The cursor position
|
* The cursor position
|
||||||
*/
|
*/
|
||||||
size_t cursorPosition;
|
size_t cursorPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -164,34 +164,34 @@ struct AutocompleteRequest
|
||||||
*/
|
*/
|
||||||
struct AutocompleteResponse
|
struct AutocompleteResponse
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The autocompletion type. (Parameters or identifier)
|
* The autocompletion type. (Parameters or identifier)
|
||||||
*/
|
*/
|
||||||
string completionType;
|
string completionType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The path to the file that contains the symbol.
|
* The path to the file that contains the symbol.
|
||||||
*/
|
*/
|
||||||
string symbolFilePath;
|
string symbolFilePath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The byte offset at which the symbol is located.
|
* The byte offset at which the symbol is located.
|
||||||
*/
|
*/
|
||||||
size_t symbolLocation;
|
size_t symbolLocation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The documentation comment
|
* The documentation comment
|
||||||
*/
|
*/
|
||||||
string[] docComments;
|
string[] docComments;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The completions
|
* The completions
|
||||||
*/
|
*/
|
||||||
string[] completions;
|
string[] completions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The kinds of the items in the completions array. Will be empty if the
|
* The kinds of the items in the completions array. Will be empty if the
|
||||||
* completion type is a function argument list.
|
* completion type is a function argument list.
|
||||||
*/
|
*/
|
||||||
char[] completionKinds;
|
char[] completionKinds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue