[build][core] analyse tokens outside scope