本文整理汇总了C#中IContextBoundSettingsStore类的典型用法代码示例。如果您正苦于以下问题:C# IContextBoundSettingsStore类的具体用法?C# IContextBoundSettingsStore怎么用?C# IContextBoundSettingsStore使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IContextBoundSettingsStore类属于命名空间,在下文中一共展示了IContextBoundSettingsStore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ContainerRegistrationAnalysisStageProcess
public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, IPatternManager patternManager)
{
this.process = process;
this.settingsStore = settingsStore;
this.typeUsageManager = typeUsageManager;
this.patternManager = patternManager;
}
示例2: 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) };
}
示例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>
/// 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));
}
示例5: CreateProcess
public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (process == null)
throw new ArgumentNullException("process");
return new MakeEnumComparisonTypeSafeDaemonStageProcess(process);
}
示例6: 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);
}
示例7: NancyDaemonStageProcess
public NancyDaemonStageProcess(SearchDomainFactory searchDomainFactory, [NotNull] IDaemonProcess daemonProcess,
[CanBeNull] CollectUsagesStageProcess collectUsagesStageProcess, IContextBoundSettingsStore settingsStore)
{
DaemonProcess = daemonProcess;
this.searchDomainFactory = searchDomainFactory;
this.collectUsagesStageProcess = collectUsagesStageProcess;
this.settingsStore = settingsStore;
}
示例8: 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);
}
示例9: 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
示例10: 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);
}
示例11: 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) };
}
示例12: ContainerRegistrationAnalysisStageProcess
public ContainerRegistrationAnalysisStageProcess(IDaemonProcess process, IContextBoundSettingsStore settingsStore, ITypeUsageManager typeUsageManager, SolutionAnalyzer solutionAnalyzer)
{
this.process = process;
this.settingsStore = settingsStore;
this.typeUsageManager = typeUsageManager;
cachedComponentRegistrations = solutionAnalyzer.Analyze().ToList();
}
示例13: Format
public override ITreeRange Format(
ITreeNode firstElement,
ITreeNode lastElement,
CodeFormatProfile profile,
IProgressIndicator progressIndicator,
IContextBoundSettingsStore overrideSettingsStore = null,
IPotentSettingsTracker settingsTracker = null)
=> new TreeRange(firstElement, lastElement);
示例14: 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) };
}
示例15: AcceptTyping
public bool AcceptTyping(char c, ITextControl textControl, IContextBoundSettingsStore boundSettingsStore)
{
if (c == ':') return true;
if (EmojiCompletionContextProvider.IsEmojiChar(c))
return this.MatchText(textControl, 1, text => text[0] == ':');
return false;
}