public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result)
        {
            if (result.GetResult <DecompilationResult>() is DecompilationResult decompilationResult)
            {
                Methods = decompilationResult
                          .TypesWithSymbols
                          .SelectMany(t => t.Methods)
                          .Where(m => m.HasBody);
            }
            else
            {
                throw new ServiceExecutionException(
                          $"{nameof(CfgParserService)} must be run after " +
                          nameof(DecompilationService));
            }

            return(Execute());
        }
Exemplo n.º 2
0
 public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result)
 {
     if (result.GetResult <DecompilationResult>() is DecompilationResult decompilationResult)
     {
         // For type environment, we want to parse all available modules and types whether
         // we have symbols for them or not.
         Types = decompilationResult.TypesWithSymbols
                 .Concat(decompilationResult.TypesWithNoSymbols);
         ModuleDefinitions = decompilationResult.ModuleDefinitionsWithSymbols
                             .Concat(decompilationResult.ModuleDefinitionsWithNoSymbols);
         return(Execute());
     }
     else
     {
         throw new ServiceExecutionException(
                   $"{nameof(TenvParserService)} must be executed after " +
                   nameof(DecompilationService));
     }
 }
Exemplo n.º 3
0
 public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result) =>
 throw new NotImplementedException();
 public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result) =>
 throw new ApplicationException("");