Fix support for Nullable (language version 8) (#25)
* Only emit #nullable when nullable is supported (>= 8.0) * x * is not
This commit is contained in:
@@ -8,10 +8,12 @@ namespace ProxyInterfaceSourceGenerator.FileGenerators
|
||||
internal abstract class BaseGenerator
|
||||
{
|
||||
protected readonly Context _context;
|
||||
protected readonly bool _supportsNullable;
|
||||
|
||||
public BaseGenerator(Context context)
|
||||
public BaseGenerator(Context context, bool supportsNullable)
|
||||
{
|
||||
_context = context;
|
||||
_supportsNullable = supportsNullable;
|
||||
}
|
||||
|
||||
protected string GetPropertyType(IPropertySymbol property, out bool isReplaced)
|
||||
|
||||
Reference in New Issue
Block a user