Exemple #1
0
 public override void ExitAttribute_section([NotNull] SBP.Attribute_sectionContext context)
 {
     if (m_propertyBlockOperands.Count != 1)
     {
         throw new InvalidOperationException("Unexpected stack depth.");
     }
     m_lastAttributes.AddRange(m_propertyBlockOperands.Pop());
 }
Exemple #2
0
 public override void EnterAttribute_section([NotNull] SBP.Attribute_sectionContext context)
 {
     m_propertyBlockOperands.Clear();
     m_propertyBlockOperands.Push(new List <PropertyBlockEntry>());
 }