static private bool ContainsWarningContext(Witness witness, WarningContext.ContextType what)
 {
     return(witness.Context.Any(wc => wc.Type == what));
 }
Beispiel #2
0
 public WarningContext(WarningContext.ContextType type, string varName)
     : this(type, 0)
 {
     this.Name = varName;
 }
Beispiel #3
0
 public WarningContext(WarningContext.ContextType type)
     : this(type, 0)
 {
 }
Beispiel #4
0
 public WarningContext(WarningContext.ContextType type, int associatedNumericalinfo)
 {
     this.Type           = type;
     this.AssociatedInfo = associatedNumericalinfo;
     this.Name           = null;
 }