handle_import_and_package.cpp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 /*parse_node*/) -> bool {
  10. return true;
  11. }
  12. auto HandleImportDirective(Context& /*context*/,
  13. Parse::ImportDirectiveId /*parse_node*/) -> bool {
  14. return true;
  15. }
  16. auto HandleLibraryIntroducer(Context& /*context*/,
  17. Parse::LibraryIntroducerId /*parse_node*/)
  18. -> bool {
  19. return true;
  20. }
  21. auto HandleLibraryDirective(Context& /*context*/,
  22. Parse::LibraryDirectiveId /*parse_node*/) -> bool {
  23. return true;
  24. }
  25. auto HandlePackageIntroducer(Context& /*context*/,
  26. Parse::PackageIntroducerId /*parse_node*/)
  27. -> bool {
  28. return true;
  29. }
  30. auto HandlePackageDirective(Context& /*context*/,
  31. Parse::PackageDirectiveId /*parse_node*/) -> bool {
  32. return true;
  33. }
  34. auto HandleLibrarySpecifier(Context& /*context*/,
  35. Parse::LibrarySpecifierId /*parse_node*/) -> bool {
  36. return true;
  37. }
  38. auto HandlePackageName(Context& /*context*/,
  39. Parse::PackageNameId /*parse_node*/) -> bool {
  40. return true;
  41. }
  42. auto HandleLibraryName(Context& /*context*/,
  43. Parse::LibraryNameId /*parse_node*/) -> bool {
  44. return true;
  45. }
  46. auto HandleDefaultLibrary(Context& /*context*/,
  47. Parse::DefaultLibraryId /*parse_node*/) -> bool {
  48. return true;
  49. }
  50. auto HandlePackageApi(Context& /*context*/, Parse::PackageApiId /*parse_node*/)
  51. -> bool {
  52. return true;
  53. }
  54. auto HandlePackageImpl(Context& /*context*/,
  55. Parse::PackageImplId /*parse_node*/) -> bool {
  56. return true;
  57. }
  58. } // namespace Carbon::Check