Пример #1
0
 /// <summary>
 /// Retruns configuration used for converting config file.
 /// </summary>
 public static AstConversionConfiguration ForConfiguration(IFrontEndConfiguration configuration)
 {
     return(new AstConversionConfiguration(
                policyRules: configuration.EnabledPolicyRules,
                disableLanguagePolicies: configuration.DisableLanguagePolicyAnalysis())
     {
         PreserveFullNameSymbols = configuration.PreserveFullNames(),
     });
 }
 /// <summary>
 /// Retruns configuration used for converting config file.
 /// </summary>
 public static AstConversionConfiguration ForConfiguration(IFrontEndConfiguration configuration)
 {
     return(new AstConversionConfiguration(
                policyRules: configuration.EnabledPolicyRules,
                disableLanguagePolicies: configuration.DisableLanguagePolicyAnalysis(),
                disableIsObsoleteCheck: configuration.DisableIsObsoleteCheckDuringConversion(),
                unsafeOptimized: configuration.UnsafeOptimizedAstConversion)
     {
         PreserveFullNameSymbols = configuration.PreserveFullNames(),
     });
 }
 /// <summary>
 /// Retruns configuration used for converting config file.
 /// </summary>
 public static AstConversionConfiguration ForConfiguration(IFrontEndConfiguration configuration)
 {
     return(new AstConversionConfiguration(
                policyRules: configuration.EnabledPolicyRules,
                degreeOfParallelism: configuration.MaxFrontEndConcurrency(),
                disableLanguagePolicies: configuration.DisableLanguagePolicyAnalysis(),
                useLegacyOfficeLogic: configuration.UseLegacyOfficeLogic())
     {
         PreserveFullNameSymbols = configuration.PreserveFullNames(),
     });
 }