Files
carbon-lang/toolchain/check/handle_where.cpp
T
c33c9a02f6 Parse support for where operator (#4275)
Includes support for the `impls`, `=`, and `==` requirement operators to
the right of a `where`, but `and` to allow multiple requirements is
still a TODO.

---------

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
2024-09-11 03:17:07 +00:00

44 lines
1.3 KiB
C++

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "toolchain/check/context.h"
#include "toolchain/check/convert.h"
#include "toolchain/check/handle.h"
namespace Carbon::Check {
auto HandleParseNode(Context& context, Parse::SelfTypeNameId node_id) -> bool {
return context.TODO(node_id, "HandleSelfTypeName");
}
auto HandleParseNode(Context& context, Parse::DesignatorExprId node_id)
-> bool {
return context.TODO(node_id, "HandleDesignatorExpr");
}
auto HandleParseNode(Context& context, Parse::WhereOperandId node_id) -> bool {
return context.TODO(node_id, "HandleWhereOperand");
}
auto HandleParseNode(Context& context, Parse::RequirementEqualId node_id)
-> bool {
return context.TODO(node_id, "HandleRequirementEqual");
}
auto HandleParseNode(Context& context, Parse::RequirementEqualEqualId node_id)
-> bool {
return context.TODO(node_id, "HandleRequirementEqualEqual");
}
auto HandleParseNode(Context& context, Parse::RequirementImplsId node_id)
-> bool {
return context.TODO(node_id, "HandleRequirementImpls");
}
auto HandleParseNode(Context& context, Parse::WhereExprId node_id) -> bool {
return context.TODO(node_id, "HandleWhereExpr");
}
} // namespace Carbon::Check