mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Migrate Declaration to newer property style, class-ify ClassDefinition (#859)
This commit is contained in:
@@ -61,7 +61,7 @@ class Value {
|
||||
|
||||
// Returns the enumerator corresponding to the most-derived type of this
|
||||
// object.
|
||||
auto Tag() const -> Kind { return tag; }
|
||||
auto Tag() const -> Kind { return kind; }
|
||||
|
||||
void Print(llvm::raw_ostream& out) const;
|
||||
LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }
|
||||
@@ -80,10 +80,10 @@ class Value {
|
||||
protected:
|
||||
// Constructs a Value. `tag` must be the enumerator corresponding to the
|
||||
// most-derived type being constructed.
|
||||
explicit Value(Kind tag) : tag(tag) {}
|
||||
explicit Value(Kind kind) : kind(kind) {}
|
||||
|
||||
private:
|
||||
const Kind tag;
|
||||
const Kind kind;
|
||||
};
|
||||
|
||||
using VarValues = std::vector<std::pair<std::string, Nonnull<const Value*>>>;
|
||||
|
||||
Reference in New Issue
Block a user