handle_match.cpp 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "toolchain/check/context.h"
  5. #include "toolchain/check/convert.h"
  6. #include "toolchain/check/handle.h"
  7. namespace Carbon::Check {
  8. auto HandleParseNode(Context& context, Parse::MatchConditionStartId node_id)
  9. -> bool {
  10. return context.TODO(node_id, "HandleMatchConditionStart");
  11. }
  12. auto HandleParseNode(Context& context, Parse::MatchConditionId node_id)
  13. -> bool {
  14. return context.TODO(node_id, "HandleMatchCondition");
  15. }
  16. auto HandleParseNode(Context& context, Parse::MatchIntroducerId node_id)
  17. -> bool {
  18. return context.TODO(node_id, "HandleMatchIntroducer");
  19. }
  20. auto HandleParseNode(Context& context, Parse::MatchStatementStartId node_id)
  21. -> bool {
  22. return context.TODO(node_id, "HandleMatchStatementStart");
  23. }
  24. auto HandleParseNode(Context& context, Parse::MatchCaseIntroducerId node_id)
  25. -> bool {
  26. return context.TODO(node_id, "HandleMatchCaseIntroducer");
  27. }
  28. auto HandleParseNode(Context& context,
  29. Parse::MatchCaseGuardIntroducerId node_id) -> bool {
  30. return context.TODO(node_id, "HandleMatchCaseGuardIntroducer");
  31. }
  32. auto HandleParseNode(Context& context, Parse::MatchCaseGuardStartId node_id)
  33. -> bool {
  34. return context.TODO(node_id, "HandleMatchCaseGuardStart");
  35. }
  36. auto HandleParseNode(Context& context, Parse::MatchCaseGuardId node_id)
  37. -> bool {
  38. return context.TODO(node_id, "HandleMatchCaseGuard");
  39. }
  40. auto HandleParseNode(Context& context, Parse::MatchCaseId node_id) -> bool {
  41. return context.TODO(node_id, "HandleMatchCase");
  42. }
  43. auto HandleParseNode(Context& context, Parse::MatchDefaultIntroducerId node_id)
  44. -> bool {
  45. return context.TODO(node_id, "MatchDefaultIntroducer");
  46. }
  47. auto HandleParseNode(Context& context, Parse::MatchDefaultId node_id) -> bool {
  48. return context.TODO(node_id, "HandleMatchDefault");
  49. }
  50. auto HandleParseNode(Context& context, Parse::MatchHandlerStartId node_id)
  51. -> bool {
  52. return context.TODO(node_id, "HandleMatchHandlerStart");
  53. }
  54. auto HandleParseNode(Context& context, Parse::MatchHandlerId node_id) -> bool {
  55. return context.TODO(node_id, "HandleMatchHandler");
  56. }
  57. auto HandleParseNode(Context& context, Parse::MatchStatementId node_id)
  58. -> bool {
  59. return context.TODO(node_id, "HandleMatchStatement");
  60. }
  61. } // namespace Carbon::Check