mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 19:41:05 +01:00
This PR is making two main changes to the Explorer and Toolchain: - Replace the `is` keyword in `where SomeType is SomeInterface` with `impls`, so it is `where SomeType impls SomeInterface` - Rewrite uses of the "impls" to something else to avoid, frequently "`impl` declarations" or "implementations", to avoid confusion with the `impls` keyword. --------- Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
@@ -398,9 +398,9 @@ WhereClause::~WhereClause() = default;
|
||||
|
||||
void WhereClause::Print(llvm::raw_ostream& out) const {
|
||||
switch (kind()) {
|
||||
case WhereClauseKind::IsWhereClause: {
|
||||
const auto& clause = cast<IsWhereClause>(*this);
|
||||
out << clause.type() << " is " << clause.constraint();
|
||||
case WhereClauseKind::ImplsWhereClause: {
|
||||
const auto& clause = cast<ImplsWhereClause>(*this);
|
||||
out << clause.type() << " impls " << clause.constraint();
|
||||
break;
|
||||
}
|
||||
case WhereClauseKind::EqualsWhereClause: {
|
||||
|
||||
Reference in New Issue
Block a user