Exemple #1
0
 /// <summary>
 /// Determine whether a particular AST tree modification is allowed, or has
 /// been squelched (regardless of any other settings)
 /// </summary>
 /// <param name="modification">one or more tree modification settings</param>
 /// <returns>true only if NONE of the passed modifications have their kill bits set</returns>
 public bool IsModificationAllowed(TreeModifications modification)
 {
     return((KillSwitch & (long)modification) == 0);
 }
 /// <summary>
 /// Determine whether a particular AST tree modification is allowed, or has
 /// been squelched (regardless of any other settings)
 /// </summary>
 /// <param name="modification">one or more tree modification settings</param>
 /// <returns>true only if NONE of the passed modifications have their kill bits set</returns>
 public bool IsModificationAllowed(TreeModifications modification)
 {
     return (KillSwitch & (long)modification) == 0;
 }
Exemple #3
0
 /// <summary>
 /// Determine whether a particular AST tree modification is allowed, or has
 /// been squelched (regardless of any other settings)
 /// </summary>
 /// <param name="modification">one or more tree modification settings</param>
 /// <returns>true only if NONE of the passed modifications have their kill bits set</returns>
 public bool IsModificationAllowed(TreeModifications modification)
 {
     return((this.KillSwitch & modification) == TreeModifications.None);
 }