示例#1
0
 public virtual void Visit(Width_HeightAttribute attribute)
 {
     VisitSubNodes(attribute);
 }
示例#2
0
        /// <summary>
        /// Parser for Width_HeightAttribute
        /// </summary>
        /// <returns>Parsed Width_HeightAttribute</returns>
        public Width_HeightAttribute ParseWidth_HeightAttribute()
        {
            Width_HeightAttribute widthHeightAttribute = new Width_HeightAttribute();

            //Get width
            CurrentToken = TokenStream.NextToken();
            widthHeightAttribute.SetWidth(ObjectToInt(CurrentToken.GetValue()));

            //Skip % token
            NextToken("%", "@width %height", '%');

            //Get height
            CurrentToken = TokenStream.NextToken();
            widthHeightAttribute.SetHeight(ObjectToInt(CurrentToken.GetValue()));

            return widthHeightAttribute;
        }