ShaderTools.Hlsl.Diagnostics.DiagnosticExtensions.ReportAmbiguousType C# (CSharp) Method

ReportAmbiguousType() public static method

public static ReportAmbiguousType ( this diagnostics, SyntaxToken name, IReadOnlyList candidates ) : void
diagnostics this
name SyntaxToken
candidates IReadOnlyList
return void
        public static void ReportAmbiguousType(this ICollection<Diagnostic> diagnostics, SyntaxToken name, IReadOnlyList<Symbol> candidates)
        {
            var symbol1 = candidates[0];
            var symbol2 = candidates[1];
            diagnostics.Report(name.Span, DiagnosticId.AmbiguousType, name.ValueText, symbol1.Name, symbol2.Name);
        }