mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 15:40:10 +01:00
Refactor Expression accessor/mutator style (#883)
This commit is contained in:
@@ -23,7 +23,7 @@ using testing::IsEmpty;
|
||||
// `IntLiteral`
|
||||
MATCHER_P(IntFieldNamed, name, "") {
|
||||
return arg.name() == std::string(name) &&
|
||||
arg.expression()->kind() == Expression::Kind::IntLiteral;
|
||||
arg.expression().kind() == Expression::Kind::IntLiteral;
|
||||
}
|
||||
|
||||
static auto FakeSourceLoc(int line_num) -> SourceLocation {
|
||||
|
||||
Reference in New Issue
Block a user