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

ReportUndeclaredField() public static method

public static ReportUndeclaredField ( this diagnostics, FieldAccessExpressionSyntax node, TypeSymbol type ) : void
diagnostics this
node FieldAccessExpressionSyntax
type ShaderTools.Hlsl.Symbols.TypeSymbol
return void
        public static void ReportUndeclaredField(this ICollection<Diagnostic> diagnostics, FieldAccessExpressionSyntax node, TypeSymbol type)
        {
            var typeName = type.ToDisplayName();
            var propertyName = node.Name.ValueText;
            diagnostics.Report(node.GetTextSpanSafe(), DiagnosticId.UndeclaredField, typeName, propertyName);
        }