aloof-angle-91616
11/27/2019, 8:38 PMhundreds-breakfast-49010
11/27/2019, 8:45 PMaloof-angle-91616
11/27/2019, 8:51 PMsrc/python/pants/engine/legacy/
, let me provide some useful linksexec
some python source code (which is just a unicode string), using the self._symbols
as an environmentself._symbols
is a dict mapping str -> Registrar
, as per https://github.com/pantsbuild/pants/blob/e873547288042aa4e6bd27bc18f2287f41eb24f3/src/python/pants/engine/legacy/parser.py#L57__call__
method is invoked when the symbol in str
is encountered: https://github.com/pantsbuild/pants/blob/e873547288042aa4e6bd27bc18f2287f41eb24f3/src/python/pants/engine/legacy/parser.py#L68-L85__call__
impl, we call self._parse_context._storage.add(obj)
ParseContext
and Storage
are both defined in https://github.com/pantsbuild/pants/blob/e873547288042aa4e6bd27bc18f2287f41eb24f3/src/python/pants/base/parse_context.py#L8