i learned how we actually do BUILD file parsing on...
# development
a
i learned how we actually do BUILD file parsing on the flight i just got off of. not planning to change anything about that right now, but can answer questions if anyone has them in the future!
💯 1
h
where's a good place to look in the code for this?
a
lots of stuff in
src/python/pants/engine/legacy/
, let me provide some useful links
as in, we
exec
some python source code (which is just a unicode string), using the
self._symbols
as an environment
you'll note that in that
__call__
impl, we call
self._parse_context._storage.add(obj)
and that's what manages the state that parsing a BUILD file affects
👍 1