Ejemplo n.º 1
0
 public DiagnosticAnalyzerDriver(
     Document document,
     TextSpan?span,
     SyntaxNode root,
     BaseDiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
     : this(document.Project, owner, cancellationToken)
 {
     _document = document;
     _span     = span;
     _root     = root;
 }
 public DiagnosticAnalyzerDriver(
     Document document, 
     TextSpan? span, 
     SyntaxNode root,
     BaseDiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
     : this (document.Project, owner, cancellationToken)
 {
     _document = document;
     _span = span;
     _root = root;
 }
Ejemplo n.º 3
0
 public DiagnosticAnalyzerDriver(
     Project project,
     BaseDiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
 {
     _project = project;
     _owner   = owner;
     _syntaxNodeAnalyzerService = project.LanguageServices.GetService <ISyntaxNodeAnalyzerService>();
     _cancellationToken         = cancellationToken;
     _generatedCodeService      = project.Solution.Workspace.Services.GetService <IGeneratedCodeRecognitionService>();
     _analyzerDriverService     = project.LanguageServices.GetService <IAnalyzerDriverService>();
     _analyzerOptions           = new WorkspaceAnalyzerOptions(project.AnalyzerOptions, project.Solution.Workspace);
     _onAnalyzerException       = owner.GetOnAnalyzerException(project.Id);
     _onAnalyzerException_NoTelemetryLogging = owner.GetOnAnalyzerException_NoTelemetryLogging(project.Id);
 }
 public DiagnosticAnalyzerDriver(
     Project project,
     BaseDiagnosticIncrementalAnalyzer owner,
     CancellationToken cancellationToken)
 {
     _project = project;
     _owner = owner;
     _syntaxNodeAnalyzerService = project.LanguageServices.GetService<ISyntaxNodeAnalyzerService>();
     _cancellationToken = cancellationToken;
     _generatedCodeService = project.Solution.Workspace.Services.GetService<IGeneratedCodeRecognitionService>();
     _analyzerDriverService = project.LanguageServices.GetService<IAnalyzerDriverService>();
     _analyzerOptions = new WorkspaceAnalyzerOptions(project.AnalyzerOptions, project.Solution.Workspace);
     _onAnalyzerException = owner.GetOnAnalyzerException(project.Id);
     _onAnalyzerException_NoTelemetryLogging = owner.GetOnAnalyzerException_NoTelemetryLogging(project.Id);
 }