本文整理汇总了C#中IContextBoundSettingsStore类的典型用法代码示例。如果您正苦于以下问题:C# IContextBoundSettingsStore类的具体用法?C# IContextBoundSettingsStore怎么用?C# IContextBoundSettingsStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IContextBoundSettingsStore类属于命名空间,在下文中一共展示了IContextBoundSettingsStore类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:dpvreony-forks,项目名称:AgentMulder,代码行数:7,代码来源:ContainerRegistrationAnalysisStageProcess.cs
示例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) };
}
开发者ID:mnaoumov,项目名称:ForTea,代码行数:11,代码来源:T4DaemonStage.cs
示例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) };
}
开发者ID:mtashkinov,项目名称:YaccConstructor,代码行数:10,代码来源:AbstractAnalysisDaemonStage.cs
示例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));
}
开发者ID:prajeeshprathap,项目名称:ReSharperPlugins,代码行数:10,代码来源:InjectionHappyDetectorDaemonStage.cs
示例5: CreateProcess
public IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (process == null)
throw new ArgumentNullException("process");
return new MakeEnumComparisonTypeSafeDaemonStageProcess(process);
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:7,代码来源:MakeEnumComparisonTypeSafeDaemonStage.cs
示例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);
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:10,代码来源:CloneDetectionDaemonStage.cs
示例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;
}
开发者ID:jimmason,项目名称:Nancy.ReSharper,代码行数:8,代码来源:NancyDaemonStageProcess.cs
示例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);
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:PsiFileStructureExplorer.cs
示例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);
}
开发者ID:cfiet,项目名称:resharper-jshint,代码行数:8,代码来源:DaemonStage.cs
示例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) };
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:IdentifierHighlightingStage.cs
示例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();
}
开发者ID:hotgazpacho,项目名称:AgentMulder,代码行数:8,代码来源:ContainerRegistrationAnalysisStageProcess.cs
示例13: Format
public override ITreeRange Format(
ITreeNode firstElement,
ITreeNode lastElement,
CodeFormatProfile profile,
IProgressIndicator progressIndicator,
IContextBoundSettingsStore overrideSettingsStore = null,
IPotentSettingsTracker settingsTracker = null)
=> new TreeRange(firstElement, lastElement);
开发者ID:MrJul,项目名称:ForTea,代码行数:8,代码来源:T4CodeFormatter.cs
示例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) };
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:8,代码来源:UseInt16MaxValueLiteralDaemonStage.cs
示例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;
}
开发者ID:hmemcpy,项目名称:ReSharper.ReMoji,代码行数:9,代码来源:EmojiAutoCompletionStrategy.cs
示例16: CreateContext
public IParameterInfoContext CreateContext(ISolution solution, IDocument document, int caretOffset, int expectedLParenthOffset, char invocationChar,
IContextBoundSettingsStore contextBoundSettingsStore) {
IParameterInfoContextFactory factory = _csParameterInfoContextFactory.Value;
IParameterInfoContext context = factory != null
? factory.CreateContext(solution, document, caretOffset, expectedLParenthOffset, invocationChar, contextBoundSettingsStore)
: null;
return Enhance(context, solution, contextBoundSettingsStore);
}
开发者ID:ShaunTGO,项目名称:ReSharper.EnhancedTooltip,代码行数:9,代码来源:EnhancedParameterInfoContextFactory.cs
示例17: InspectionsProcess
public InspectionsProcess(IDaemonProcess process, IContextBoundSettingsStore settings)
: base(process, settings)
{
process.SourceFile.PrimaryPsiLanguage.Is<PsiLanguage>();
process.GetStageProcess<PsiFileIndexProcess>();
myDeclarations = new Dictionary<string, List<IDeclaration>>();
VisitFile(process.SourceFile.GetPsiFile<PsiLanguage>(new DocumentRange(process.SourceFile.Document, 0)) as IPsiFile);
}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:9,代码来源:InspectionsProcess.cs
示例18: CreateProcess
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (process == null)
throw new ArgumentNullException("process");
return new[]
{
new MockMetricsDaemonStageProcess(process, settings.GetValue((MockMetricsSettings s) => s.ArrangeAmount))
};
}
开发者ID:KozhevnikovDmitry,项目名称:MockMetrics,代码行数:10,代码来源:MockMetricsDaemonStage.cs
示例19: CreateProcess
public IEnumerable<IDaemonStageProcess> CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (process == null)
throw new ArgumentNullException("process");
return new[]
{
new FakeDaemonStageProcess(process)
};
}
开发者ID:KozhevnikovDmitry,项目名称:MockMetrics,代码行数:10,代码来源:FakeDaemonStage.cs
示例20: CreateProcess
public override IDaemonStageProcess CreateProcess(IDaemonProcess process, IContextBoundSettingsStore settings, DaemonProcessKind processKind)
{
if (!IsSupported(process.SourceFile))
return null;
var collectUsagesStageProcess = process.GetStageProcess<CollectUsagesStageProcess>();
var typeUsageManager = new TypeUsageManager(collectUsagesStageProcess);
return new ContainerRegistrationAnalysisStageProcess(process, settings, typeUsageManager, solutionAnalyzer);
}
开发者ID:renana,项目名称:AgentMulder,代码行数:10,代码来源:ContainerRegistrationAnalysisStage.cs
注:本文中的IContextBoundSettingsStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论