Exemplo n.º 1
0
        public override object VisitProperty(PropertyContext context)
        {
            if (Ignore || _currentClass == null)
            {
                return(null);
            }

            var variable = ParceType(context.type());

            variable.AccessModifier = _accessModifier;
            variable.Default        = context.propertyDefaultValue()?.GetText();
            variable.Description    = _currentComment;
            variable.IsStatic       = context.FoundChild <IsStaticContext>();
            variable.Name           = context.propertyName().GetText();
            variable.UMeta          = _currentUMeta ?? variable.UMeta;
            variable.OwnerClass     = _currentClass;

            _currentClass.Property.Add(variable);
            _currentUMeta   = null;
            _currentComment = "";

            return(null);
        }