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

ReportUndeclaredMethod() public static method

public static ReportUndeclaredMethod ( this diagnostics, MethodInvocationExpressionSyntax node, TypeSymbol declaringType, IEnumerable argumentTypes ) : void
diagnostics this
node MethodInvocationExpressionSyntax
declaringType ShaderTools.Hlsl.Symbols.TypeSymbol
argumentTypes IEnumerable
return void
        public static void ReportUndeclaredMethod(this ICollection<Diagnostic> diagnostics, MethodInvocationExpressionSyntax node, TypeSymbol declaringType, IEnumerable<TypeSymbol> argumentTypes)
        {
            var name = node.Name.ValueText;
            var declaringTypeName = declaringType.ToDisplayName();
            var argumentTypeNames = string.Join(@", ", argumentTypes.Select(t => t.ToDisplayName()));
            diagnostics.Report(node.GetTextSpanRoot(), DiagnosticId.UndeclaredMethod, declaringTypeName, name, argumentTypeNames);
        }