mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 06:54:44 +01:00
Add a location to indirect imports. (#4098)
By adding an `ImportDecl` instruction, this creates something that can be referenced through `ImportIRInst`. packages/no_prelude/implicit_imports_entities.carbon is getting a test of this (import_conflict and import_conflict_reverse). Also re-packs ImportIR from 24 bytes to 16 on 64-bit, since I'm touching everywhere that makes one anyways.
This commit is contained in:
@@ -455,6 +455,7 @@ static auto StringifyTypeExprImpl(const SemIR::File& outer_sem_ir,
|
||||
case FloatLiteral::Kind:
|
||||
case FunctionDecl::Kind:
|
||||
case ImplDecl::Kind:
|
||||
case ImportDecl::Kind:
|
||||
case ImportRefLoaded::Kind:
|
||||
case ImportRefUnloaded::Kind:
|
||||
case InitializeFrom::Kind:
|
||||
@@ -585,6 +586,7 @@ auto GetExprCategory(const File& file, InstId inst_id) -> ExprCategory {
|
||||
case FunctionType::Kind:
|
||||
case GenericClassType::Kind:
|
||||
case GenericInterfaceType::Kind:
|
||||
case ImportDecl::Kind:
|
||||
case InterfaceDecl::Kind:
|
||||
case InterfaceType::Kind:
|
||||
case InterfaceWitness::Kind:
|
||||
|
||||
Reference in New Issue
Block a user