aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/shedlang/compiler/sources
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2025-01-05 23:39:19 +0000
committerMichael Williamson <mike@zwobble.org>2025-01-05 23:39:19 +0000
commit1e6e1f7bb8776fc013f76828ed8df3f9297d095b (patch)
tree69033190a65779f6dbd694e15d66763b53408c5d /src/main/java/org/shedlang/compiler/sources
parentf54116f39ccb6d1efec95d76c59e9dad1d46e426 (diff)
Use java-source-text for JSON5 parsing
Diffstat (limited to 'src/main/java/org/shedlang/compiler/sources')
-rw-r--r--src/main/java/org/shedlang/compiler/sources/Sources.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/shedlang/compiler/sources/Sources.java b/src/main/java/org/shedlang/compiler/sources/Sources.java
index e59c91cc..ccfadca6 100644
--- a/src/main/java/org/shedlang/compiler/sources/Sources.java
+++ b/src/main/java/org/shedlang/compiler/sources/Sources.java
@@ -6,15 +6,15 @@ public class Sources {
public static Source NULL = NullSource.INSTANCE;
public static Source RUNTIME = RuntimeSource.INSTANCE;
- public static Source file(Path path, String contents) {
+ public static FileFragmentSource file(Path path, String contents) {
return FileFragmentSource.file(path.toString(), contents);
}
- public static Source file(String filename, String contents) {
+ public static FileFragmentSource file(String filename, String contents) {
return FileFragmentSource.file(filename, contents);
}
- public static Source string(String contents) {
+ public static FileFragmentSource string(String contents) {
return FileFragmentSource.file("<string>", contents);
}
}