aboutsummaryrefslogtreecommitdiff
path: root/src/entity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.cpp')
-rw-r--r--src/entity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entity.cpp b/src/entity.cpp
index 37bafc7d3..fa76026ff 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -124,7 +124,7 @@ struct Entity {
Scope *scope;
} ImportName;
struct {
- String path;
+ Array<String> paths;
String name;
} LibraryName;
i32 Nil;
@@ -278,9 +278,9 @@ Entity *alloc_entity_import_name(Scope *scope, Token token, Type *type,
}
Entity *alloc_entity_library_name(Scope *scope, Token token, Type *type,
- String path, String name) {
+ Array<String> paths, String name) {
Entity *entity = alloc_entity(Entity_LibraryName, scope, token, type);
- entity->LibraryName.path = path;
+ entity->LibraryName.paths = paths;
entity->LibraryName.name = name;
entity->state = EntityState_Resolved; // TODO(bill): Is this correct?
return entity;