Esempio n. 1
0
        public static void ReportAmbiguousNamespaceOrType(this ICollection <Diagnostic> diagnostics, QualifiedDeclarationNameSyntax syntax, IReadOnlyList <Symbol> candidates)
        {
            var symbol1 = candidates[0];
            var symbol2 = candidates[1];

            diagnostics.Report(syntax.GetTextSpanSafe(), DiagnosticId.AmbiguousNamespaceOrType, syntax.ToStringIgnoringMacroReferences(), symbol1.Name, symbol2.Name);
        }
Esempio n. 2
0
 public static void ReportAmbiguousNamespaceOrType(this ICollection<Diagnostic> diagnostics, QualifiedDeclarationNameSyntax syntax, IReadOnlyList<Symbol> candidates)
 {
     var symbol1 = candidates[0];
     var symbol2 = candidates[1];
     diagnostics.Report(syntax.GetTextSpanSafe(), DiagnosticId.AmbiguousNamespaceOrType, syntax.ToStringIgnoringMacroReferences(), symbol1.Name, symbol2.Name);
 }
Esempio n. 3
0
 public static void ReportUndeclaredNamespaceOrType(this ICollection<Diagnostic> diagnostics, QualifiedDeclarationNameSyntax node)
 {
     var typeName = node.Left.ToStringIgnoringMacroReferences();
     diagnostics.Report(node.GetTextSpanSafe(), DiagnosticId.UndeclaredNamespaceOrType, typeName);
 }
Esempio n. 4
0
 public static void ReportUndeclaredFunctionInNamespaceOrClass(this ICollection<Diagnostic> diagnostics, QualifiedDeclarationNameSyntax name)
 {
     var declaringTypeName = name.Left.ToStringIgnoringMacroReferences();
     diagnostics.Report(name.GetTextSpanSafe(), DiagnosticId.UndeclaredFunctionInNamespaceOrClass, declaringTypeName, name.GetUnqualifiedName().Name.Text);
 }
Esempio n. 5
0
        public static void ReportUndeclaredNamespaceOrType(this ICollection <Diagnostic> diagnostics, QualifiedDeclarationNameSyntax node)
        {
            var typeName = node.Left.ToStringIgnoringMacroReferences();

            diagnostics.Report(node.GetTextSpanSafe(), DiagnosticId.UndeclaredNamespaceOrType, typeName);
        }
Esempio n. 6
0
        public static void ReportUndeclaredFunctionInNamespaceOrClass(this ICollection <Diagnostic> diagnostics, QualifiedDeclarationNameSyntax name)
        {
            var declaringTypeName = name.Left.ToStringIgnoringMacroReferences();

            diagnostics.Report(name.GetTextSpanSafe(), DiagnosticId.UndeclaredFunctionInNamespaceOrClass, declaringTypeName, name.GetUnqualifiedName().Name.Text);
        }