1 write to Symbol
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
51
Symbol
= symbol;
21 references to Symbol
Metrics.Legacy (21)
src\RoslynAnalyzers\Tools\Metrics\MetricsOutputWriter.cs (8)
63
writer.WriteStartElement(data.
Symbol
.Kind.ToString());
64
switch (data.
Symbol
.Kind)
67
var minimalTypeName = new StringBuilder(data.
Symbol
.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
69
var containingType = data.
Symbol
.ContainingType;
84
var location = data.
Symbol
.Locations.First();
85
writer.WriteAttributeString("Name", data.
Symbol
.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
91
writer.WriteAttributeString("Name", data.
Symbol
.ToDisplayString());
127
switch (data.
Symbol
.Kind)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.AssemblyMetricData.cs (2)
62
Debug.Assert(child.
Symbol
.Kind == SymbolKind.Namespace);
64
Debug.Assert(child.Children.All(grandChild => grandChild.
Symbol
.Kind == SymbolKind.NamedType));
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (6)
112
/// Array of code metrics data for symbolic children of <see cref="
Symbol
"/>, if any.
123
switch (
Symbol
.Kind)
131
if (((INamespaceSymbol)
Symbol
).IsGlobalNamespace)
137
symbolName =
Symbol
.Name;
141
symbolName =
Symbol
.ToDisplayString();
151
symbolName =
Symbol
.ToDisplayString();
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamedTypeMetricData.cs (4)
83
if (child.
Symbol
.Kind != SymbolKind.Field ||
84
filteredFieldsForComplexity.Contains((IFieldSymbol)child.
Symbol
))
114
var orderedFieldDatas = children.Where(c => c.
Symbol
.Kind == SymbolKind.Field).OrderBy(c => c.MaintainabilityIndex);
124
builder.Add((IFieldSymbol)fieldData.
Symbol
);
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.NamespaceMetricData.cs (1)
60
if (child.
Symbol
.ContainingType == null)