handle_import_and_package.cpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. namespace Carbon::Check {
  6. // `import` and `package` are structured by parsing. As a consequence, no
  7. // checking logic is needed here.
  8. auto HandleImportIntroducer(Context& /*context*/,
  9. Parse::ImportIntroducerId /*node_id*/) -> bool {
  10. return true;
  11. }
  12. auto HandleImportDirective(Context& /*context*/,
  13. Parse::ImportDirectiveId /*node_id*/) -> bool {
  14. return true;
  15. }
  16. auto HandleLibraryIntroducer(Context& /*context*/,
  17. Parse::LibraryIntroducerId /*node_id*/) -> bool {
  18. return true;
  19. }
  20. auto HandleLibraryDirective(Context& /*context*/,
  21. Parse::LibraryDirectiveId /*node_id*/) -> bool {
  22. return true;
  23. }
  24. auto HandlePackageIntroducer(Context& /*context*/,
  25. Parse::PackageIntroducerId /*node_id*/) -> bool {
  26. return true;
  27. }
  28. auto HandlePackageDirective(Context& /*context*/,
  29. Parse::PackageDirectiveId /*node_id*/) -> bool {
  30. return true;
  31. }
  32. auto HandleLibrarySpecifier(Context& /*context*/,
  33. Parse::LibrarySpecifierId /*node_id*/) -> bool {
  34. return true;
  35. }
  36. auto HandlePackageName(Context& /*context*/, Parse::PackageNameId /*node_id*/)
  37. -> bool {
  38. return true;
  39. }
  40. auto HandleLibraryName(Context& /*context*/, Parse::LibraryNameId /*node_id*/)
  41. -> bool {
  42. return true;
  43. }
  44. auto HandleDefaultLibrary(Context& /*context*/,
  45. Parse::DefaultLibraryId /*node_id*/) -> bool {
  46. return true;
  47. }
  48. auto HandlePackageApi(Context& /*context*/, Parse::PackageApiId /*node_id*/)
  49. -> bool {
  50. return true;
  51. }
  52. auto HandlePackageImpl(Context& /*context*/, Parse::PackageImplId /*node_id*/)
  53. -> bool {
  54. return true;
  55. }
  56. } // namespace Carbon::Check