Skip to content

Commit

Permalink
Bump hylo
Browse files Browse the repository at this point in the history
  • Loading branch information
koliyo committed Aug 10, 2024
1 parent 7779172 commit 0d8fc50
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the "hylo-lsp" extension will be documented in this file.

## v0.6.12

Bump hylo version

## v0.6.11

Bump hylo version
Expand Down
8 changes: 4 additions & 4 deletions Sources/hylo-lsp/AST+StdLibrary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ extension AST {
internal init(sourceFiles: [SourceFile]) throws {
self.init(ConditionalCompilationFactors())
var diagnostics = DiagnosticSet()
coreLibrary = try makeModule(
coreLibrary = try loadModule(
"Hylo",
sourceCode: sourceFiles,
builtinModuleAccess: true,
diagnostics: &diagnostics)
parsing: sourceFiles,
withBuiltinModuleAccess: true,
reportingDiagnosticsTo: &diagnostics)

assert(coreModuleIsLoaded)
self.coreTraits = .init(self)
Expand Down
2 changes: 1 addition & 1 deletion Sources/hylo-lsp/DocumentProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public actor DocumentProvider {
if !sourceFiles.isEmpty {
let productName = "lsp-build"
// let sourceFiles = try sourceFiles(in: inputs)
_ = try ast.makeModule(productName, sourceCode: sourceFiles, builtinModuleAccess: false, diagnostics: &diagnostics)
_ = try ast.loadModule(productName, parsing: sourceFiles, withBuiltinModuleAccess: false, reportingDiagnosticsTo: &diagnostics)
}

return ast
Expand Down
2 changes: 1 addition & 1 deletion hylo
Submodule hylo updated 282 files

0 comments on commit 0d8fc50

Please sign in to comment.