https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

11/27/2019, 8:38 PM
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

hundreds-breakfast-49010

11/27/2019, 8:45 PM
where's a good place to look in the code for this?
a

aloof-angle-91616

11/27/2019, 8:51 PM
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