Skip to content

Commit

Permalink
Merge pull request #179 from nordlow/revert-rename
Browse files Browse the repository at this point in the history
Rename SemanticAllocator to ASTAllocator
  • Loading branch information
maxhaton authored Jun 23, 2022
2 parents 486668c + e895127 commit 46873f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dsymbol/modulecache.d
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import std.file;
import std.experimental.lexer;
import std.path;

alias SemanticAllocator = AllocatorList!(n => Region!Mallocator(1024 * 128), Mallocator);
alias ASTAllocator = AllocatorList!(n => Region!Mallocator(1024 * 128), Mallocator);

/**
* Returns: true if a file exists at the given path.
Expand Down Expand Up @@ -196,7 +196,7 @@ struct ModuleCache

CacheEntry* newEntry = CacheAllocator.instance.make!CacheEntry();

scope semanticAllocator = new SemanticAllocator();
scope semanticAllocator = new ASTAllocator();
import dparse.rollback_allocator:RollbackAllocator;
RollbackAllocator parseAllocator;
Module m = parseModuleSimple(tokens[], cachedLocation, &parseAllocator);
Expand Down

0 comments on commit 46873f0

Please sign in to comment.