Move everything under package `dcd` (#417)
Move everything under package `dcd` merged-on-behalf-of: Richard Andrew Cattermole <alphaglosined@gmail.com>
This commit is contained in:
parent
0b3fbb8e4e
commit
ad9c08c6b0
12
build.bat
12
build.bat
|
@ -4,10 +4,10 @@ set containers_modules=
|
||||||
for /r "containers/src" %%F in (*.d) do call set containers_modules=%%containers_modules%% "%%F"
|
for /r "containers/src" %%F in (*.d) do call set containers_modules=%%containers_modules%% "%%F"
|
||||||
|
|
||||||
set common_modules=
|
set common_modules=
|
||||||
for /r "src/common" %%F in (*.d) do call set common_modules=%%common_modules%% "%%F"
|
for /r "src/dcd/common" %%F in (*.d) do call set common_modules=%%common_modules%% "%%F"
|
||||||
|
|
||||||
set server_modules=
|
set server_modules=
|
||||||
for /r "src/server" %%F in (*.d) do call set server_modules=%%server_modules%% "%%F"
|
for /r "src/dcd/server" %%F in (*.d) do call set server_modules=%%server_modules%% "%%F"
|
||||||
|
|
||||||
set dsymbol_modules=
|
set dsymbol_modules=
|
||||||
for /r "dsymbol/src" %%F in (*.d) do call set dsymbol_modules=%%dsymbol_modules%% "%%F"
|
for /r "dsymbol/src" %%F in (*.d) do call set dsymbol_modules=%%dsymbol_modules%% "%%F"
|
||||||
|
@ -22,10 +22,10 @@ set client_name=bin\dcd-client
|
||||||
set server_name=bin\dcd-server
|
set server_name=bin\dcd-server
|
||||||
|
|
||||||
%DC%^
|
%DC%^
|
||||||
src\client\client.d^
|
src\dcd\client\client.d^
|
||||||
src\common\messages.d^
|
src\dcd\common\messages.d^
|
||||||
src\common\dcd_version.d^
|
src\dcd\common\dcd_version.d^
|
||||||
src\common\socket.d^
|
src\dcd\common\socket.d^
|
||||||
%msgspack_modules%^
|
%msgspack_modules%^
|
||||||
-Imsgpack-d\src^
|
-Imsgpack-d\src^
|
||||||
-release -inline -O -wi^
|
-release -inline -O -wi^
|
||||||
|
|
12
dub.json
12
dub.json
|
@ -17,26 +17,26 @@
|
||||||
"name": "library",
|
"name": "library",
|
||||||
"targetType": "library",
|
"targetType": "library",
|
||||||
"excludedSourceFiles": [
|
"excludedSourceFiles": [
|
||||||
"src/client/*",
|
"src/dcd/client/*",
|
||||||
"src/server/main.d"
|
"src/dcd/server/main.d"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "client",
|
"name": "client",
|
||||||
"targetType": "executable",
|
"targetType": "executable",
|
||||||
"targetName": "dcd-client",
|
"targetName": "dcd-client",
|
||||||
"mainSourceFile": "src/client/client.d",
|
"mainSourceFile": "src/dcd/client/client.d",
|
||||||
"excludedSourceFiles": [
|
"excludedSourceFiles": [
|
||||||
"src/server/*"
|
"src/dcd/server/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "server",
|
"name": "server",
|
||||||
"targetType": "executable",
|
"targetType": "executable",
|
||||||
"targetName": "dcd-server",
|
"targetName": "dcd-server",
|
||||||
"mainSourceFile": "src/server/server.d",
|
"mainSourceFile": "src/dcd/server/server.d",
|
||||||
"excludedSourceFiles": [
|
"excludedSourceFiles": [
|
||||||
"src/client/*"
|
"src/dcd/client/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
8
makefile
8
makefile
|
@ -27,8 +27,8 @@ clean:
|
||||||
rm -f *.o
|
rm -f *.o
|
||||||
|
|
||||||
CLIENT_SRC := \
|
CLIENT_SRC := \
|
||||||
$(shell find src/common -name "*.d")\
|
$(shell find src/dcd/common -name "*.d")\
|
||||||
$(shell find src/client -name "*.d")\
|
$(shell find src/dcd/client -name "*.d")\
|
||||||
$(shell find msgpack-d/src/ -name "*.d")
|
$(shell find msgpack-d/src/ -name "*.d")
|
||||||
|
|
||||||
DMD_CLIENT_FLAGS := -Imsgpack-d/src\
|
DMD_CLIENT_FLAGS := -Imsgpack-d/src\
|
||||||
|
@ -54,8 +54,8 @@ LDC_CLIENT_FLAGS := -Imsgpack-d/src\
|
||||||
-of=bin/dcd-client
|
-of=bin/dcd-client
|
||||||
|
|
||||||
SERVER_SRC := \
|
SERVER_SRC := \
|
||||||
$(shell find src/common -name "*.d")\
|
$(shell find src/dcd/common -name "*.d")\
|
||||||
$(shell find src/server -name "*.d")\
|
$(shell find src/dcd/server -name "*.d")\
|
||||||
$(shell find ${DSYMBOL_DIR}/src -name "*.d")\
|
$(shell find ${DSYMBOL_DIR}/src -name "*.d")\
|
||||||
${DPARSE_DIR}/src/dparse/ast.d\
|
${DPARSE_DIR}/src/dparse/ast.d\
|
||||||
${DPARSE_DIR}/src/dparse/entities.d\
|
${DPARSE_DIR}/src/dparse/entities.d\
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module client.client;
|
module dcd.client.client;
|
||||||
|
|
||||||
import std.socket;
|
import std.socket;
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
|
@ -30,9 +30,9 @@ import std.conv;
|
||||||
import std.string;
|
import std.string;
|
||||||
import std.experimental.logger;
|
import std.experimental.logger;
|
||||||
|
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
import common.dcd_version;
|
import dcd.common.dcd_version;
|
||||||
import common.socket;
|
import dcd.common.socket;
|
||||||
|
|
||||||
int main(string[] args)
|
int main(string[] args)
|
||||||
{
|
{
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module common.constants;
|
module dcd.common.constants;
|
||||||
|
|
||||||
// The lists in this module should be kept sorted.
|
// The lists in this module should be kept sorted.
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module common.dcd_version;
|
module dcd.common.dcd_version;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Human-readable version number
|
* Human-readable version number
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module common.messages;
|
module dcd.common.messages;
|
||||||
|
|
||||||
import std.socket;
|
import std.socket;
|
||||||
import msgpack;
|
import msgpack;
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module common.socket;
|
module dcd.common.socket;
|
||||||
|
|
||||||
import core.sys.posix.unistd; // getuid
|
import core.sys.posix.unistd; // getuid
|
||||||
import std.format;
|
import std.format;
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete.complete;
|
module dcd.server.autocomplete.complete;
|
||||||
|
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
import std.array;
|
import std.array;
|
||||||
|
@ -27,7 +27,7 @@ import std.path;
|
||||||
import std.string;
|
import std.string;
|
||||||
import std.typecons;
|
import std.typecons;
|
||||||
|
|
||||||
import server.autocomplete.util;
|
import dcd.server.autocomplete.util;
|
||||||
|
|
||||||
import dparse.lexer;
|
import dparse.lexer;
|
||||||
import dparse.rollback_allocator;
|
import dparse.rollback_allocator;
|
||||||
|
@ -40,8 +40,8 @@ import dsymbol.scope_;
|
||||||
import dsymbol.string_interning;
|
import dsymbol.string_interning;
|
||||||
import dsymbol.symbol;
|
import dsymbol.symbol;
|
||||||
|
|
||||||
import common.constants;
|
import dcd.common.constants;
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles autocompletion
|
* Handles autocompletion
|
|
@ -16,21 +16,21 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete.doc;
|
module dcd.server.autocomplete.doc;
|
||||||
|
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
import std.array;
|
import std.array;
|
||||||
import std.experimental.logger;
|
import std.experimental.logger;
|
||||||
import std.typecons;
|
import std.typecons;
|
||||||
|
|
||||||
import server.autocomplete.util;
|
import dcd.server.autocomplete.util;
|
||||||
|
|
||||||
import dparse.lexer;
|
import dparse.lexer;
|
||||||
import dparse.rollback_allocator;
|
import dparse.rollback_allocator;
|
||||||
|
|
||||||
import dsymbol.modulecache;
|
import dsymbol.modulecache;
|
||||||
|
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets documentation for the symbol at the cursor
|
* Gets documentation for the symbol at the cursor
|
|
@ -16,13 +16,13 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete.localuse;
|
module dcd.server.autocomplete.localuse;
|
||||||
|
|
||||||
import std.experimental.logger;
|
import std.experimental.logger;
|
||||||
import std.range;
|
import std.range;
|
||||||
import std.typecons;
|
import std.typecons;
|
||||||
|
|
||||||
import server.autocomplete.util;
|
import dcd.server.autocomplete.util;
|
||||||
|
|
||||||
import dparse.lexer;
|
import dparse.lexer;
|
||||||
import dparse.rollback_allocator;
|
import dparse.rollback_allocator;
|
||||||
|
@ -31,7 +31,7 @@ import dsymbol.conversion;
|
||||||
import dsymbol.modulecache;
|
import dsymbol.modulecache;
|
||||||
import dsymbol.symbol;
|
import dsymbol.symbol;
|
||||||
|
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds the uses of the symbol at the cursor position within a single document.
|
* Finds the uses of the symbol at the cursor position within a single document.
|
|
@ -16,11 +16,11 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete;
|
module dcd.server.autocomplete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
import server.autocomplete.complete;
|
import dcd.server.autocomplete.complete;
|
||||||
import server.autocomplete.doc;
|
import dcd.server.autocomplete.doc;
|
||||||
import server.autocomplete.localuse;
|
import dcd.server.autocomplete.localuse;
|
||||||
import server.autocomplete.symbols;
|
import dcd.server.autocomplete.symbols;
|
|
@ -16,12 +16,12 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete.symbols;
|
module dcd.server.autocomplete.symbols;
|
||||||
|
|
||||||
import std.experimental.logger;
|
import std.experimental.logger;
|
||||||
import std.typecons;
|
import std.typecons;
|
||||||
|
|
||||||
import server.autocomplete.util;
|
import dcd.server.autocomplete.util;
|
||||||
|
|
||||||
import dparse.lexer;
|
import dparse.lexer;
|
||||||
import dparse.rollback_allocator;
|
import dparse.rollback_allocator;
|
||||||
|
@ -31,7 +31,7 @@ import dsymbol.modulecache;
|
||||||
import dsymbol.string_interning;
|
import dsymbol.string_interning;
|
||||||
import dsymbol.symbol;
|
import dsymbol.symbol;
|
||||||
|
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
|
|
||||||
import containers.hashset;
|
import containers.hashset;
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.autocomplete.util;
|
module dcd.server.autocomplete.util;
|
||||||
|
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
import std.experimental.allocator;
|
import std.experimental.allocator;
|
||||||
|
@ -25,7 +25,7 @@ import std.range;
|
||||||
import std.string;
|
import std.string;
|
||||||
import std.typecons;
|
import std.typecons;
|
||||||
|
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
|
|
||||||
import dparse.lexer;
|
import dparse.lexer;
|
||||||
import dparse.rollback_allocator;
|
import dparse.rollback_allocator;
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.main;
|
module dcd.server.main;
|
||||||
|
|
||||||
import core.sys.posix.sys.stat;
|
import core.sys.posix.sys.stat;
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
|
@ -36,12 +36,12 @@ import std.stdio;
|
||||||
|
|
||||||
import msgpack;
|
import msgpack;
|
||||||
|
|
||||||
import common.dcd_version;
|
import dcd.common.dcd_version;
|
||||||
import common.messages;
|
import dcd.common.messages;
|
||||||
import common.socket;
|
import dcd.common.socket;
|
||||||
import dsymbol.modulecache;
|
import dsymbol.modulecache;
|
||||||
import server.autocomplete;
|
import dcd.server.autocomplete;
|
||||||
import server.server;
|
import dcd.server.server;
|
||||||
|
|
||||||
int main(string[] args)
|
int main(string[] args)
|
||||||
{
|
{
|
|
@ -16,7 +16,7 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module server.server;
|
module dcd.server.server;
|
||||||
|
|
||||||
import std.algorithm;
|
import std.algorithm;
|
||||||
import std.array;
|
import std.array;
|
Loading…
Reference in New Issue