configPrint method
void
configPrint()
Implementation
void configPrint() {
print('''Settings:
+============================
| $CONFIG_EVENT_DISPATCHER : $configEventDispatcher
| $CONFIG_SAVING_RUNTIME_CONTEXT : $configSaveRuntimeContext
| $CONFIG_STATE_WILL_LIST_TOKENS : $configListTokenStateNames
| $CONFIG_USECACHE : $useCache
| $CONFIG_ENUMSTRICT : $configEnumStrict
| $CONFIG_GROUPCOUNT_STRICTCHECK : $configGroupCountStrictCheck
| $CONFIG_MATCHLENGTH_STRICTCHECK : $configMatchLengthStrictCheck
| $CONFIG_DEBUGPRINT_THROWERROR : $configDebugPrintThrowError
+============================
''');
if (configListTokenStateNames == null || _tokensUnprocessed == null) return;
print('''
Tokens by state:
=============================
''');
var total = 0;
configListTokenStateNames?.forEach((tokenObj) {
var byToken = 0;
print(''' ${tokenName(tokenObj)}:
=========================
''');
_tokensUnprocessed?.forEach((UnprocessedToken ut) {
if (tokenObj == ut.token ||
ut.token.toString() == 'Token.' + tokenName(tokenObj)) {
byToken++;
print(''' ${ut.stateName}:
${ut.match}
''');
}
});
var byTokenPadding = 'total: $byToken'.padLeft(25);
total += byToken;
print('''
=========================
$byTokenPadding
''');
});
var totalPadding = 'total: $total'.padLeft(29);
print('''
=============================
$totalPadding
''');
}