Ejemplo n.º 1
0
 public override void ExitElementPropertyList([NotNull] SBP.ElementPropertyListContext context)
 {
     if (m_propertyBlockOperands.Count != 1)
     {
         throw new InvalidOperationException("Unexpected stack depth.");
     }
     m_lastElementPropertyBlock = new PropertyBlock(context.Start.Line, m_propertyBlockOperands.Pop());
     if (m_currentFileElement != null)
     {
         m_currentFileElement.SetPropertyBlockData(m_lastElementPropertyBlock);
         try
         {
             m_currentFileElement.ParsePropertyBlock(this);
         }
         catch (ParsingErrorException ex)
         {
             m_errors.SymanticError(context.Start.Line, -1, false, $"Value '{ex.Name}': {ex.Message}");
         }
     }
 }
Ejemplo n.º 2
0
 public override void ExitElementPropertyList([NotNull] SBP.ElementPropertyListContext context)
 {
 }
Ejemplo n.º 3
0
 public override void EnterElementPropertyList([NotNull] SBP.ElementPropertyListContext context)
 {
     this.EnterElementProps();
 }