internal ISet<MethodDescriptor> GetReachableMethods(CallGraph<MethodDescriptor, LocationDescriptor> callgraph)
 {
     return callgraph.GetReachableMethods();
 }
Exemplo n.º 2
0
 internal ISet <MethodDescriptor> GetReachableMethods(CallGraph <MethodDescriptor, LocationDescriptor> callgraph)
 {
     return(callgraph.GetReachableMethods());
 }
		/// <summary>
		/// Checks if a method is reachbable
		/// </summary>
		/// <param name="methodDescriptor"></param>
		/// <returns></returns>
		internal bool IsReachable(MethodDescriptor methodDescriptor, CallGraph<MethodDescriptor, LocationDescriptor> callgraph)
        {  
            //var method = FindMethodSymbolInSolution(methodDescriptor).Method;
            //return method != null && Callgraph.GetReachableMethods().Contains(method); // ,new Compare());
            return callgraph.GetReachableMethods().Contains(methodDescriptor); 
        }
Exemplo n.º 4
0
 /// <summary>
 /// Checks if a method is reachbable
 /// </summary>
 /// <param name="methodDescriptor"></param>
 /// <returns></returns>
 internal bool IsReachable(MethodDescriptor methodDescriptor, CallGraph <MethodDescriptor, LocationDescriptor> callgraph)
 {
     //var method = FindMethodSymbolInSolution(methodDescriptor).Method;
     //return method != null && Callgraph.GetReachableMethods().Contains(method); // ,new Compare());
     return(callgraph.GetReachableMethods().Contains(methodDescriptor));
 }