mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
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>
38 lines
1.2 KiB
C++
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
|