mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-15 23:48:09 +00:00
These appear in `where` clauses, as in: ``` U:! InterfaceB where .C = Vector(.D) V:! type where Vector(.Self) impls Sortable ``` `.Self` can additionally appear in type expressions in a binding pattern such as `T:! InterfaceA(.Self)`. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com> Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
21 lines
643 B
C++
21 lines
643 B
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");
|
|
}
|
|
|
|
} // namespace Carbon::Check
|