fix build errors after DCD integration

This commit is contained in:
Vadim Lopatin 2016-01-11 09:12:23 +03:00
parent e931bea259
commit 057e75f44b
8 changed files with 88 additions and 14 deletions

View File

@ -473,6 +473,80 @@
<File path="src\dlangide\workspace\workspacesettings.d" />
</Folder>
</Folder>
<Folder name="3rdparty">
<Folder name="dcd">
<File path="..\DCD\src\server\autocomplete.d" />
<File path="..\DCD\src\common\constants.d" />
<File path="..\DCD\src\common\dcd_version.d" />
<File path="..\DCD\src\common\messages.d" />
</Folder>
<Folder name="dsymbol">
<File path="..\dsymbol\src\dsymbol\cache_entry.d" />
<File path="..\dsymbol\src\dsymbol\deferred.d" />
<File path="..\dsymbol\src\dsymbol\conversion\first.d" />
<File path="..\dsymbol\src\dsymbol\import_.d" />
<File path="..\dsymbol\src\dsymbol\modulecache.d" />
<File path="..\dsymbol\src\dsymbol\builtin\names.d" />
<File path="..\dsymbol\src\dsymbol\conversion\package.d" />
<File path="..\dsymbol\src\dsymbol\scope_.d" />
<File path="..\dsymbol\src\dsymbol\conversion\second.d" />
<File path="..\dsymbol\src\dsymbol\semantic.d" />
<File path="..\dsymbol\src\dsymbol\string_interning.d" />
<File path="..\dsymbol\src\dsymbol\symbol.d" />
<File path="..\dsymbol\src\dsymbol\builtin\symbols.d" />
<File path="..\dsymbol\src\dsymbol\type_lookup.d" />
</Folder>
<Folder name="libdparse">
<File path="..\libdparse\src\dparse\ast.d" />
<File path="..\libdparse\src\dparse\entities.d" />
<File path="..\libdparse\src\dparse\formatter.d" />
<File path="..\libdparse\src\std\experimental\lexer.d" />
<File path="..\libdparse\src\dparse\lexer.d" />
<File path="..\libdparse\src\dparse\parser.d" />
</Folder>
<Folder name="containers">
<File path="..\containers\src\containers\dynamicarray.d" />
<File path="..\containers\src\containers\internal\element_type.d" />
<File path="..\containers\src\containers\internal\hash.d" />
<File path="..\containers\src\containers\hashmap.d" />
<File path="..\containers\src\containers\hashset.d" />
<File path="..\containers\src\containers\immutablehashset.d" />
<File path="..\containers\src\containers\internal\mixins.d" />
<File path="..\containers\src\containers\internal\node.d" />
<File path="..\containers\src\containers\openhashset.d" />
<File path="..\containers\src\containers\package.d" />
<File path="..\containers\src\containers\simdset.d" />
<File path="..\containers\src\containers\slist.d" />
<File path="..\containers\src\containers\internal\storage_type.d" />
<File path="..\containers\src\containers\treemap.d" />
<File path="..\containers\src\containers\ttree.d" />
<File path="..\containers\src\containers\unrolledlist.d" />
</Folder>
<Folder name="experimental_allocator">
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\affix_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\allocator_list.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\bitmapped_block.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\bucketizer.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\common.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\fallback_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\free_list.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\free_tree.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\gc_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\kernighan_ritchie.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\mallocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\mmap_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\null_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\package.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\package.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\quantizer.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\region.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\scoped_allocator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\segregator.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\showcase.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\building_blocks\stats_collector.d" />
<File path="..\experimental_allocator\src\std\experimental\allocator\typed.d" />
</Folder>
</Folder>
<File path="src\dlangide.d" />
</Folder>
</DProject>

View File

@ -1571,10 +1571,10 @@ class Tokenizer
}
this(SourceLines lineStream) {
init(lineStream);
initialize(lineStream);
}
void init(SourceLines lineStream, int pos = 0) {
void initialize(SourceLines lineStream, int pos = 0) {
_lineStream = lineStream;
SourceFile file = _lineStream.file;
_sharedWhiteSpaceToken.setFile(file);

View File

@ -280,8 +280,8 @@ class SimpleDSyntaxSupport : SyntaxSupport {
protected Token _lastToken;
protected bool initTokenizer(TextPosition startPos) {
const dstring[] lines = content.lines;
_lines.init(cast(dstring[])(lines[startPos.line .. $]), _file, startPos.line);
_tokenizer.init(_lines, startPos.pos);
_lines.initialize(cast(dstring[])(lines[startPos.line .. $]), _file, startPos.line);
_tokenizer.initialize(_lines, startPos.pos);
_lastTokenStart = startPos;
_lastToken = null;
nextToken();
@ -536,8 +536,8 @@ class SimpleDSyntaxSupport : SyntaxSupport {
_props = props;
changeStartLine = 0;
changeEndLine = cast(int)lines.length;
_lines.init(lines[changeStartLine..$], _file, changeStartLine);
_tokenizer.init(_lines);
_lines.initialize(lines[changeStartLine..$], _file, changeStartLine);
_tokenizer.initialize(_lines);
int tokenPos = 0;
int tokenLine = 0;
ubyte category = 0;

View File

@ -262,14 +262,14 @@ class IDEFrame : AppFrame, ProgramExecutionStatusListener, BreakpointListChangeL
return true;
}
override protected void init() {
override protected void initialize() {
_appName = "dlangide";
//_editorTool = new DEditorTool(this);
_settings = new IDESettings(buildNormalizedPath(settingsDir, "settings.json"));
_settings.load();
_settings.updateDefaults();
_settings.save();
super.init();
super.initialize();
}
/// move focus to editor in currently selected tab

View File

@ -52,8 +52,8 @@ class NewFileDlg : Dialog {
_location = folder.filename;
}
/// override to implement creation of dialog controls
override void init() {
super.init();
override void initialize() {
super.initialize();
initTemplates();
Widget content;
try {

View File

@ -47,8 +47,8 @@ class NewProjectDlg : Dialog {
}
/// override to implement creation of dialog controls
override void init() {
super.init();
override void initialize() {
super.initialize();
initTemplates();
Widget content;
try {

View File

@ -156,7 +156,7 @@ class OutputPanel : DockWindow {
return _tabs;
}
override protected void init() {
override protected void initialize() {
//styleId = STYLE_DOCK_WINDOW;
styleId = null;

View File

@ -78,7 +78,7 @@ class WatchPanel : DockWindow {
return _tabs;
}
override protected void init() {
override protected void initialize() {
//styleId = STYLE_DOCK_WINDOW;
styleId = null;
//_caption.text = "Watch"d;