本文整理汇总了C#中IDaemonProcess类的典型用法代码示例。如果您正苦于以下问题:C# IDaemonProcess类的具体用法?C# IDaemonProcess怎么用?C# IDaemonProcess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDaemonProcess类属于命名空间,在下文中一共展示了IDaemonProcess类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateProcess
/// <summary>
/// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document
/// </summary>
public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind kind)
{
if (process == null)
throw new ArgumentNullException("process");
return new InjectionHappyDetectorDaemonStageProcess(process, settings.GetValue((InjectionHappyDetectorSettings s) => s.MaximumParameters));
}
示例2: CreateProcess
/// <summary>
/// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document.
/// </summary>
protected override IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind, ICSharpFile file)
{
if (process == null)
throw new ArgumentNullException("process");
return new CloneDetectionDaemonStageProcess(process);
}
示例3: CreateProcess
/// <summary>
/// This method provides a <see cref="IDaemonStageProcess"/> instance which is assigned to highlighting a single document
/// </summary>
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind kind)
{
if (process == null)
throw new ArgumentNullException("process");
return new List<IDaemonStageProcess> { new ComplexityAnalysisDaemonStageProcess(process, 0) };
}
示例4: CreateProcess
/// <summary>
/// Provides an <see cref="IDaemonStageProcess"/> instance which is assigned to
/// highlighting a single document
/// </summary>
public IDaemonStageProcess CreateProcess(IDaemonProcess process) {
if (process == null) {
throw new ArgumentNullException("process");
}
Logger.LogMessage("NHibernatePlugin: MappingFileAnalysisDaemonStage.CreateProcess called");
return new MappingFileAnalysisDaemonStageProcess(process);
}
示例5: CreateProcess
public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (process == null)
throw new ArgumentNullException("process");
return new MakeEnumComparisonTypeSafeDaemonStageProcess(process);
}
示例6: ContainerRegistrationAnalysisStageProcess
public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, IPatternManager patternManager)
{
this.process = process;
this.settingsStore = settingsStore;
this.typeUsageManager = typeUsageManager;
this.patternManager = patternManager;
}
示例7: CreateProcess
/// <summary>
/// Creates a code analysis process corresponding to this stage for analysing a file.
/// </summary>
/// <returns>Code analysis process to be executed or <c>null</c> if this stage is not available for this file.</returns>
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind) {
var t4File = process.SourceFile.GetTheOnlyPsiFile(T4Language.Instance) as IT4File;
if (t4File == null)
return EmptyList<IDaemonStageProcess>.InstanceList;
return new[] { CreateProcess(process, t4File) };
}
示例8: CreateProcess
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
IFile psiFile = process.SourceFile.GetTheOnlyPsiFile(RazorCSharpLanguage.Instance);
if (psiFile == null)
return Enumerable.Empty<IDaemonStageProcess>();
return new[] { new UseOfSemicolonLiteralInRazorSyntaxDaemonProcess(process) };
}
开发者ID:xavierdecoster,项目名称:ReSharper.RazorExtensions,代码行数:8,代码来源:UseOfSemicolonLiteralInRazorSyntaxDaemonStage.cs
示例9: Run
public IFileStructure Run(IDaemonProcess process, IPsiSourceFile psiSourceFile, IContextBoundSettingsStore settingsStore, IFile file)
{
var psiFile = file as IPsiFile;
if (psiFile == null)
return null;
return new PsiFileStructure(psiFile, settingsStore);
}
示例10: DaemonStageProcess
public DaemonStageProcess(IDaemonProcess process, SearchDomainFactory searchDomainFactory, ICSharpFile csFile)
{
this.searchDomainFactory = searchDomainFactory;
this.csFile = csFile;
DaemonProcess = process;
usages = process.GetStageProcess<CollectUsagesStageProcess>();
Assertion.Assert(usages != null, "usages != null");
}
示例11: CreateProcess
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
IFile psiFile = process.SourceFile.GetNonInjectedPsiFile(JavaScriptLanguage.Instance);
if (psiFile == null)
yield return null;
yield return new DaemonStageProcess(process);
}
示例12: CreateProcess
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
IFile psiFile = process.SourceFile.GetNonInjectedPsiFile<CSharpLanguage>();
if (psiFile == null)
return Enumerable.Empty<IDaemonStageProcess>();
return new [] { new UseInt16MaxValueLiteralDaemonProcess(process) };
}
示例13: ContainerRegistrationAnalysisStageProcess
public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, SolutionAnalyzer solutionAnalyzer)
{
this.process = process;
this.settingsStore = settingsStore;
this.typeUsageManager = typeUsageManager;
cachedComponentRegistrations = solutionAnalyzer.Analyze().ToList();
}
示例14: CreateProcess
public override IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (!IsSupported(process.SourceFile))
{
return EmptyList<IDaemonStageProcess>.InstanceList;
}
return new List<IDaemonStageProcess> { new IdentifierHighlighterProcess(process, settings) };
}
示例15: DaemonStageProcess
/// <summary>
/// Initializes a new instance of the <see cref="DaemonStageProcess"/> class.
/// </summary>
/// <param name="process">The process.</param>
public DaemonStageProcess(IDaemonProcess process)
: base(process)
{
this.stringEmptyAnalyzer = new StringEmptyAnalyzer(this.DaemonProcess.Solution);
this.returnAnalyzer = new ReturnAnalyzer(this.DaemonProcess.Solution);
this.documentThrownExceptionAnalyzer = new DocumentThrownExceptionAnalyzer(this.DaemonProcess.Solution);
this.valueAnalysisAnalyzer = new ValueAnalysisAnalyzer(this.DaemonProcess.Solution);
}