コード例 #1
0
 public override void ExitProtocol([NotNull] LuminaryParser.ProtocolContext context)
 {
     if (File != _types.Pop() as FileNode || _types.Count != 0)
     {
         throw new InvalidOperationException(@"Something went completely wrong.");
     }
 }
コード例 #2
0
 public override void EnterProtocol([NotNull] LuminaryParser.ProtocolContext context)
 {
     File = new FileNode();
     _types.Push(File);
 }