lix/src/libexpr
pennae a385e51a08 rename SymbolIdx -> Symbol, Symbol -> SymbolStr
after #6218 `Symbol` no longer confers a uniqueness invariant on the
string it wraps, it is now possible to create multiple symbols that
compare equal but whose string contents have different addresses. this
guarantee is now only provided by `SymbolIdx`, leaving `Symbol` only as
a string wrapper that knows about the intricacies of how symbols need to
be formatted for output.

this change renames `SymbolIdx` to `Symbol` to restore the previous
semantics of `Symbol` to that name. we also keep the wrapper type and
rename it to `SymbolStr` instead of returning plain strings from lookups
into the symbol table because symbols are formatted for output in many
places. theoretically we do not need `SymbolStr`, only a function that
formats a string for output as a symbol, but having to wrap every symbol
that appears in a message into eg `formatSymbol()` is error-prone and
inconvient.
2022-04-25 15:37:01 +02:00
..
flake store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
primops store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
attr-path.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
attr-path.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
attr-set.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
attr-set.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
eval-cache.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
eval-cache.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
eval-inline.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
eval.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
eval.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
fetchurl.nix Move <nix/fetchurl.nix> into the nix binary 2020-12-22 14:43:20 +01:00
function-trace.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
function-trace.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
get-drvs.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
get-drvs.hh nix-env: always print output names in JSON and XML 2022-03-16 21:26:19 +01:00
imported-drv-to-derivation.nix Move some corepkgs into the nix binary 2020-03-11 16:57:48 +01:00
json-to-value.cc return string_views from forceString* 2022-01-27 17:15:43 +01:00
json-to-value.hh return string_views from forceString* 2022-01-27 17:15:43 +01:00
lexer.l replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
local.mk Merge pull request #5175 from Pamplemousse/make 2021-08-30 12:44:29 +02:00
nix-expr.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
nixexpr.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
nixexpr.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
parser.y rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
primops.cc rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
primops.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
symbol-table.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00
value-to-json.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
value-to-json.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
value-to-xml.cc store Symbols in a table as well, like positions 2022-04-21 21:56:31 +02:00
value-to-xml.hh replace most Pos objects/ptrs with indexes into a position table 2022-04-21 21:46:06 +02:00
value.hh rename SymbolIdx -> Symbol, Symbol -> SymbolStr 2022-04-25 15:37:01 +02:00