Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Commit

Permalink
nothrow import providers
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Feb 7, 2019
1 parent bc0da2b commit ed578e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions source/workspaced/api.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import std.traits;
import std.typecons;

///
alias ImportPathProvider = string[]delegate();
alias ImportPathProvider = string[] delegate() nothrow;
///
alias BroadcastCallback = void delegate(WorkspaceD, WorkspaceD.Instance, JSONValue);
///
Expand Down Expand Up @@ -405,17 +405,17 @@ class WorkspaceD
ComponentWrapperInstance[] instanceComponents;
Configuration config;

string[] importPaths() const @property
string[] importPaths() const @property nothrow
{
return importPathProvider ? importPathProvider() : [];
}

string[] stringImportPaths() const @property
string[] stringImportPaths() const @property nothrow
{
return stringImportPathProvider ? stringImportPathProvider() : [];
}

string[] importFiles() const @property
string[] importFiles() const @property nothrow
{
return importFilesProvider ? importFilesProvider() : [];
}
Expand Down
6 changes: 3 additions & 3 deletions source/workspaced/com/dub.d
Original file line number Diff line number Diff line change
Expand Up @@ -274,19 +274,19 @@ class DubComponent : ComponentWrapper
}

/// Lists all import paths
string[] imports() @property
string[] imports() @property nothrow
{
return _importPaths;
}

/// Lists all string import paths
string[] stringImports() @property
string[] stringImports() @property nothrow
{
return _stringImportPaths;
}

/// Lists all import paths to files
string[] fileImports() @property
string[] fileImports() @property nothrow
{
return _importFiles;
}
Expand Down
2 changes: 1 addition & 1 deletion source/workspaced/com/fsworkspace.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FSWorkspaceComponent : ComponentWrapper
}

/// Lists all import-, string import- & file import paths
string[] imports()
string[] imports() nothrow
{
return paths;
}
Expand Down

0 comments on commit ed578e3

Please sign in to comment.