[build-system] Rename BuildSettingsProvider->BuildSystem and fix method name

I intend to fold more things than file-settings into here, so use a more
generic name. Also drop an unnecessary word from the method name.
This commit is contained in:
Ben Langmuir
2018-12-03 22:30:18 -08:00
parent 64ba25db5a
commit 63b9b3dbaf
12 changed files with 71 additions and 61 deletions

View File

@@ -17,7 +17,7 @@ import LanguageServerProtocol
///
/// Provides build settings from a `CompilationDatabase` found by searching a project. For now, only
/// one compilation database, located at the project root.
public final class CompilationDatabaseBuildSystem: BuildSettingsProvider {
public final class CompilationDatabaseBuildSystem: BuildSystem {
/// The compilation database.
var compdb: CompilationDatabase? = nil
@@ -31,7 +31,7 @@ public final class CompilationDatabaseBuildSystem: BuildSettingsProvider {
}
}
public func settings(for url: URL, language: Language) -> FileBuildSettings? {
public func settings(for url: URL, _ language: Language) -> FileBuildSettings? {
guard let db = database(for: url),
let cmd = db[url].first else { return nil }
return FileBuildSettings(