From 1a75dfe07513359352985429d6c687327a4b0b73 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 30 Nov 2017 20:34:42 +0000 Subject: Remove `vector` type (will be replaced by something else in the future) --- src/entity.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/entity.cpp') diff --git a/src/entity.cpp b/src/entity.cpp index 0cb05d428..00993d407 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -36,7 +36,7 @@ enum EntityFlag { EntityFlag_Using = 1<<2, EntityFlag_Field = 1<<3, EntityFlag_Param = 1<<4, - EntityFlag_VectorElem = 1<<5, + EntityFlag_ArrayElem = 1<<5, EntityFlag_Ellipsis = 1<<6, EntityFlag_NoAlias = 1<<7, EntityFlag_TypeField = 1<<8, @@ -227,12 +227,12 @@ Entity *make_entity_field(gbAllocator a, Scope *scope, Token token, Type *type, return entity; } -Entity *make_entity_vector_elem(gbAllocator a, Scope *scope, Token token, Type *type, i32 field_src_index) { +Entity *make_entity_array_elem(gbAllocator a, Scope *scope, Token token, Type *type, i32 field_src_index) { Entity *entity = make_entity_variable(a, scope, token, type, false); entity->Variable.field_src_index = field_src_index; entity->Variable.field_index = field_src_index; entity->flags |= EntityFlag_Field; - entity->flags |= EntityFlag_VectorElem; + entity->flags |= EntityFlag_ArrayElem; return entity; } -- cgit v1.2.3