コード例 #1
0
        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());
        }
コード例 #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));
     }
 }
コード例 #3
0
 public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result) =>
 throw new NotImplementedException();
コード例 #4
0
 public ServiceExecutionResult ExecuteFromResult(ServiceExecutionResult result) =>
 throw new ApplicationException("");