From 0d8fc504a79a6902d78c011f8f1e45daa57530a6 Mon Sep 17 00:00:00 2001 From: Nils Hjelte Date: Sat, 10 Aug 2024 12:27:00 +0200 Subject: [PATCH] Bump hylo --- CHANGELOG.md | 4 ++++ Sources/hylo-lsp/AST+StdLibrary.swift | 8 ++++---- Sources/hylo-lsp/DocumentProvider.swift | 2 +- hylo | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71b3755..53d059f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Sources/hylo-lsp/AST+StdLibrary.swift b/Sources/hylo-lsp/AST+StdLibrary.swift index f513217..df6a10d 100644 --- a/Sources/hylo-lsp/AST+StdLibrary.swift +++ b/Sources/hylo-lsp/AST+StdLibrary.swift @@ -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) diff --git a/Sources/hylo-lsp/DocumentProvider.swift b/Sources/hylo-lsp/DocumentProvider.swift index a508c36..c83c2a2 100644 --- a/Sources/hylo-lsp/DocumentProvider.swift +++ b/Sources/hylo-lsp/DocumentProvider.swift @@ -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 diff --git a/hylo b/hylo index 6360566..95b828a 160000 --- a/hylo +++ b/hylo @@ -1 +1 @@ -Subproject commit 6360566a500fc63901ed6759eefeee7fec73d6d2 +Subproject commit 95b828a48361160502724abf30b4bc5bf16e4a5a