processVars method
Implementation
void processVars(StyleSheet styleSheet) {
// Build list of all var definitions.
var mainStyleSheetVarDefs = (_VarDefAndUsage(_messages, _allVarDefinitions)
..visitTree(styleSheet))
.varDefs;
// Resolve all definitions to a non-VarUsage (terminal expression).
mainStyleSheetVarDefs.forEach((key, value) {
for (var _ in (value.expression as Expressions).expressions) {
mainStyleSheetVarDefs[key] =
_findTerminalVarDefinition(_allVarDefinitions, value);
}
});
}