mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:44:55 +01:00
Rename Carbon::StringLiteralId -> Carbon::StringLiteralValueId. (#3522)
We have `StringLiteral`s in multiple other `Carbon` sub-namespaces. Rename to a more specific name to avoid collisions. We should likely also rename `Carbon::IntId` -> `Carbon::IntValueId` and `Carbon::RealId` -> `Carbon::RealValueId`, but this collision is prioritized because it was blocking work on typed parse nodes which introduces a `Carbon::Parse::StringLiteralId`.
This commit is contained in:
@@ -952,7 +952,7 @@ auto Lexer::LexStringLiteral(llvm::StringRef source_text, ssize_t& position)
|
||||
}
|
||||
|
||||
if (literal->is_terminated()) {
|
||||
auto string_id = buffer_.value_stores_->string_literals().Add(
|
||||
auto string_id = buffer_.value_stores_->string_literal_values().Add(
|
||||
literal->ComputeValue(buffer_.allocator_, emitter_));
|
||||
auto token = buffer_.AddToken({.kind = TokenKind::StringLiteral,
|
||||
.token_line = string_line,
|
||||
|
||||
Reference in New Issue
Block a user