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

ReportUndeclaredFunction() public static method

public static ReportUndeclaredFunction ( this diagnostics, FunctionInvocationExpressionSyntax node, IEnumerable argumentTypes ) : void
diagnostics this
node FunctionInvocationExpressionSyntax
argumentTypes IEnumerable
return void
        public static void ReportUndeclaredFunction(this ICollection<Diagnostic> diagnostics, FunctionInvocationExpressionSyntax node, IEnumerable<TypeSymbol> argumentTypes)
        {
            var name = node.Name.ToStringIgnoringMacroReferences();
            var argumentTypeList = string.Join(@", ", argumentTypes.Select(t => t.ToDisplayName()));
            diagnostics.Report(node.GetTextSpanSafe(), DiagnosticId.UndeclaredFunction, name, argumentTypeList);
        }