mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 11:11:04 +01:00
Use string values instead of string pointers in Expression. (#591)
This commit is contained in:
@@ -57,13 +57,13 @@ struct Expression;
|
||||
|
||||
struct Variable {
|
||||
static constexpr ExpressionKind Kind = ExpressionKind::Variable;
|
||||
std::string* name;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
struct FieldAccess {
|
||||
static constexpr ExpressionKind Kind = ExpressionKind::GetField;
|
||||
const Expression* aggregate;
|
||||
std::string* field;
|
||||
std::string field;
|
||||
};
|
||||
|
||||
struct Index {
|
||||
@@ -74,7 +74,7 @@ struct Index {
|
||||
|
||||
struct PatternVariable {
|
||||
static constexpr ExpressionKind Kind = ExpressionKind::PatternVariable;
|
||||
std::string* name;
|
||||
std::string name;
|
||||
const Expression* type;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user