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