From e5334420287bfbc810fa91cd892e2327aa11f4b1 Mon Sep 17 00:00:00 2001 From: Geoff Romer Date: Thu, 6 Jan 2022 10:00:10 -0800 Subject: [PATCH] Use /* instead of #if 0 for NamedEntity interface (#1006) --- executable_semantics/ast/static_scope.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/executable_semantics/ast/static_scope.h b/executable_semantics/ast/static_scope.h index 27753d52cb0f..77dbc6323889 100644 --- a/executable_semantics/ast/static_scope.h +++ b/executable_semantics/ast/static_scope.h @@ -27,7 +27,7 @@ static constexpr std::string_view AnonymousName = "_"; // True if NodeType::ImplementsCarbonNamedEntity is valid and names a type, // indicating that NodeType implements the NamedEntity interface, which means // it must define the following methods, with contracts as documented. -#if 0 +/* // Returns the static type of an IdentifierExpression that names *this. auto static_type() const -> const Value&; @@ -37,7 +37,7 @@ static constexpr std::string_view AnonymousName = "_"; // Returns the name of an IdentifierExpression that names *this. If *this // is anonymous, returns AnonymousName. auto name() const -> std::string_view; -#endif +*/ // NodeType must be derived from AstNode. // // TODO: consider turning the above documentation into real code, as sketched