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:
Richard Smith
2023-12-18 23:27:33 +00:00
committed by GitHub
parent 9390e666ce
commit d87fe8b532
14 changed files with 43 additions and 39 deletions
+1 -1
View File
@@ -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,