mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 15:18:11 +00:00
Refactor Expression accessor/mutator style (#883)
This commit is contained in:
1 parent
c2140c6cb9
commit
55ecb62ce5
7 files changed
+177
-172
No files matched your search
@@ -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