1 write to Info
Microsoft.CodeAnalysis.CSharp.Features (1)
FileLevelDirectiveHelpers.cs (1)
145
Info
= new()
13 references to Info
Microsoft.CodeAnalysis.CSharp.Features (13)
FileLevelDirectiveHelpers.cs (13)
160
diagnostics.AddError(sourceFile, context.
Info
.Span, FileBasedProgramsResources.QuoteInDirective);
312
var other => context.Diagnostics.AddError<Named>(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.UnrecognizedDirective, other)),
324
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind));
330
return context.Diagnostics.AddError<(string, string?)?>(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.InvalidDirectiveName, directiveKind, separator));
379
return new Sdk(context.
Info
)
405
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.
Info
.Span, FileBasedProgramsResources.PropertyDirectiveMissingParts);
414
return context.Diagnostics.AddError<Property?>(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.PropertyDirectiveInvalidName, ex.Message), ex);
420
context.Diagnostics.AddError(context.SourceFile, context.
Info
.Span, FileBasedProgramsResources.StaticGraphRestoreNotSupported);
423
return new Property(context.
Info
)
447
return new Package(context.
Info
)
468
return context.Diagnostics.AddError<Project?>(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind));
494
context.Diagnostics.AddError(context.SourceFile, context.
Info
.Span, string.Format(FileBasedProgramsResources.InvalidProjectDirective, e.Message), e);
497
return new Project(context.
Info
)