Files
carbon-lang/toolchain/check/handle_import_and_package.cpp
T
Jon Ross-PerkinsandRichard Smith c9458fe30a Add parse support for 'import', brush up 'package' a little. (#3347)
This detects ordering issues with the `package` and `import` statements.
`library` is changed from package-specific to instead be generic between
the two, since structurally it's non-specific.

The next step would be to start exposing the results for the driver to
make ordering decisions for checking. That'll involve further
modifications to this code, but this felt like a reasonable change point
because it's the extent of the parser enforcement, and still causes
significant refactoring.

---------

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
2023-10-31 21:26:49 +00:00

38 lines
1.2 KiB
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"
namespace Carbon::Check {
auto HandleImportIntroducer(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandleImportIntroducer");
}
auto HandlePackageIntroducer(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandlePackageIntroducer");
}
auto HandleLibrary(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandleLibrary");
}
auto HandlePackageApi(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandlePackageApi");
}
auto HandlePackageImpl(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandlePackageImpl");
}
auto HandleImportDirective(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandleImportDirective");
}
auto HandlePackageDirective(Context& context, Parse::Node parse_node) -> bool {
return context.TODO(parse_node, "HandlePackageDirective");
}
} // namespace Carbon::Check