mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 01:42:41 +00:00
This provides `export import` logic in lex, parse, and check; `export name` logic is only in lex and parse, not check. I think with `export name` I'm going to need to modify import_ref and some consolidation logic, whereas `export import` seems feasible to keep as primarily import logic. Given the implementations were looking like they'd diverge more substantially, I thought it'd be helpful to cut the PR here.
78 lines
2.1 KiB
C++
78 lines
2.1 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 {
|
|
|
|
// `import` and `package` are structured by parsing. As a consequence, no
|
|
// checking logic is needed here.
|
|
|
|
auto HandleImportIntroducer(Context& /*context*/,
|
|
Parse::ImportIntroducerId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleImportExport(Context& /*context*/, Parse::ImportExportId /*node_id*/)
|
|
-> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleImportDirective(Context& /*context*/,
|
|
Parse::ImportDirectiveId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleLibraryIntroducer(Context& /*context*/,
|
|
Parse::LibraryIntroducerId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleLibraryDirective(Context& /*context*/,
|
|
Parse::LibraryDirectiveId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandlePackageIntroducer(Context& /*context*/,
|
|
Parse::PackageIntroducerId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandlePackageDirective(Context& /*context*/,
|
|
Parse::PackageDirectiveId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleLibrarySpecifier(Context& /*context*/,
|
|
Parse::LibrarySpecifierId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandlePackageName(Context& /*context*/, Parse::PackageNameId /*node_id*/)
|
|
-> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleLibraryName(Context& /*context*/, Parse::LibraryNameId /*node_id*/)
|
|
-> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandleDefaultLibrary(Context& /*context*/,
|
|
Parse::DefaultLibraryId /*node_id*/) -> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandlePackageApi(Context& /*context*/, Parse::PackageApiId /*node_id*/)
|
|
-> bool {
|
|
return true;
|
|
}
|
|
|
|
auto HandlePackageImpl(Context& /*context*/, Parse::PackageImplId /*node_id*/)
|
|
-> bool {
|
|
return true;
|
|
}
|
|
|
|
} // namespace Carbon::Check
|