diff --git a/src/protocol/parser/symbol_table.rs b/src/protocol/parser/symbol_table.rs index e194388b17347616e7e9cf1dd74957b2b71143a1..ed684488fbc1a30862e45d0ad78ec5753e8ecc46 100644 --- a/src/protocol/parser/symbol_table.rs +++ b/src/protocol/parser/symbol_table.rs @@ -23,8 +23,11 @@ pub(crate) enum Symbol { } pub(crate) struct SymbolValue { - // Position refers to the origin of the symbol definition (i.e. the module's - // RootId that is in the key being used to lookup this value) + // Position is the place where the symbol is introduced to a module (this + // position always corresponds to the module whose RootId is stored in the + // `SymbolKey` associated with this `SymbolValue`). For a definition this + // is the position where the symbol is defined, for an import this is the + // position of the import statement. pub(crate) position: InputPosition, pub(crate) symbol: Symbol, }