Esempio n. 1
0
 public static bool IsAstSafe(Ast ast, GetSafeValueVisitor.SafeValueContext safeValueContext)
 {
     IsSafeValueVisitor visitor = new IsSafeValueVisitor(safeValueContext);
     if ((bool)ast.Accept(visitor) && visitor._visitCount < MaxVisitCount)
     {
         return true;
     }
     return false;
 }
Esempio n. 2
0
 internal IsSafeValueVisitor(GetSafeValueVisitor.SafeValueContext safeValueContext)
 {
     _safeValueContext = safeValueContext;
 }