< Summary

Information
Class: Hertzole.ScriptableValues.Generator.FieldOrPropertyWrapper
Assembly: Hertzole.ScriptableValues.Generator
File(s): Generator/Hertzole.ScriptableValues.Generator/Data/FieldOrPropertyWrapper.cs
Tag: 52_28197466029
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
Total lines: 24
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
.ctor(...)100%110%

File(s)

Generator/Hertzole.ScriptableValues.Generator/Data/FieldOrPropertyWrapper.cs

#LineLine coverage
 1using Microsoft.CodeAnalysis;
 2
 3namespace Hertzole.ScriptableValues.Generator;
 4
 5public readonly record struct FieldOrPropertyWrapper
 6{
 07    public string Name { get; }
 08    public ITypeSymbol Type { get; }
 09    public ISymbol Symbol { get; }
 10
 11    public FieldOrPropertyWrapper(IFieldSymbol fieldSymbol)
 12    {
 013        Name = fieldSymbol.Name;
 014        Type = fieldSymbol.Type;
 015        Symbol = fieldSymbol;
 016    }
 17
 18    public FieldOrPropertyWrapper(IPropertySymbol propertySymbol)
 19    {
 020        Name = propertySymbol.Name;
 021        Type = propertySymbol.Type;
 022        Symbol = propertySymbol;
 023    }
 24}