private void ParceDelegateKey(UMetaParametrContext context) { if (_currentDelegate == null) { return; } if (_currentDelegateVariable == null) { _currentDelegateVariable = ParceType(context.FindFirst <TypeContext>()); } else { var key = context.uMetaParamKey().GetText(); _currentDelegateVariable.Name = key; _currentDelegate.Parametrs.Add(_currentDelegateVariable); _currentDelegateVariable = null; } }
public override object VisitUMetaParametr(UMetaParametrContext context) { var key = context.uMetaParamKey().GetText(); var value = context.uMetaParamValue()?.GetText(); var paramList = context.uMetaParametrList(); if (!_currentUMeta.ContainsKey(key)) { if (_currentDelegate != null) { ParceDelegateKey(context); } else { _currentUMeta.Add(key, value != null ? value.Trim('"') : ""); } } if (paramList != null) { VisitUMetaParametrList(paramList); } return(null); }