39 references to SR
Microsoft.Interop.SourceGeneration (39)
BoundGenerators.cs (1)
217
NotSupportedDetails =
SR
.MarshallerInNativeReturnPositionMustMatchNativeReturnType
CustomMarshallingInfoHelper.cs (6)
32
diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerTypeMustBeStaticClassOrStruct), entryPointType.ToDisplayString(), type.ToDisplayString());
50
diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString());
64
(type, entryPointType) => diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()),
74
diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString());
96
(type, entryPointType) => diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerEntryPointTypeMustMatchArity), entryPointType.ToDisplayString(), type.ToDisplayString()),
148
diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.MarshallerTypeMustBeStaticClassOrStruct), entryPointType.ToDisplayString(), type.ToDisplayString());
ISymbolExtensions.cs (2)
20
details = string.Format(
SR
.TypeAccessibilityDetails, symbol.ToDisplayString(), symbol.DeclaredAccessibility.ToString().ToLowerInvariant());
28
details = string.Format(
SR
.ContainingTypeAccessibilityDetails, current.ToDisplayString(), current.DeclaredAccessibility.ToString().ToLowerInvariant());
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (10)
76
NotSupportedDetails =
SR
.ArraySizeMustBeSpecified
98
NotSupportedDetails =
SR
.CollectionSizeParamTypeMustBeIntegral
107
NotSupportedDetails =
SR
.CollectionSizeParamTypeMustBeIntegral
156
NotSupportedDetails =
SR
.RuntimeMarshallingMustBeDisabled,
426
NotSupportedDetails =
SR
.Format(
SR
.UnmanagedToManagedMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName)
436
NotSupportedDetails =
SR
.Format(
SR
.BidirectionalMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName)
446
NotSupportedDetails =
SR
.Format(
SR
.ManagedToUnmanagedMissingRequiredMarshaller, marshalInfo.EntryPointType.FullTypeName)
Marshalling\BlittableMarshallerResolver.cs (1)
36
NotSupportedDetails =
SR
.RuntimeMarshallingMustBeDisabled,
Marshalling\BreakingChangeDetector.cs (1)
34
Details =
SR
.InVariantShouldBeRef
Marshalling\ByValueMarshalKindSupportDescriptor.cs (6)
27
UnnecessaryDataName =
SR
.InOutAttributes,
55
InSupport: new(ByValueMarshalKindSupport.NotSupported,
SR
.InAttributeNotSupportedOnByValueParameters),
56
OutSupport: new(ByValueMarshalKindSupport.NotSupported,
SR
.OutAttributeNotSupportedOnByValueParameters),
57
InOutSupport: new(ByValueMarshalKindSupport.NotSupported,
SR
.InOutAttributeNotSupportedOnByValueParameters));
63
DefaultSupport: new(ByValueMarshalKindSupport.NotRecommended,
SR
.PreferExplicitInOutAttributesOnArrays),
80
NotSupportedDetails =
SR
.InOutAttributeByRefNotSupported
Marshalling\CharMarshallingGeneratorResolver.cs (4)
42
NotSupportedDetails = string.Format(
SR
.MarshallingStringOrCharAsUndefinedNotSupported, _stringMarshallingAttribute)
65
NotSupportedDetails =
SR
.Format(
SR
.MarshallingCharAsSpecifiedStringMarshallingNotSupported, nameof(CharEncoding.Utf8))
70
NotSupportedDetails =
SR
.MarshallingCharAsStringMarshallingCustomNotSupported
Marshalling\MarshallerHelpers.cs (1)
192
throw new InvalidOperationException(
SR
.GraphHasCycles);
Marshalling\NoMarshallingInfoErrorResolver.cs (2)
43
{ SpecialTypeInfo.String, string.Format(
SR
.MarshallingStringOrCharAsUndefinedNotSupported, stringMarshallingAttribute) },
44
{ SpecialTypeInfo.Boolean,
SR
.MarshallingBoolAsUndefinedNotSupported },
MarshallingInfoParser.cs (2)
314
_diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.CyclicalCountInfo), elementName);
343
_diagnostics.ReportInvalidMarshallingAttributeInfo(attrData, nameof(
SR
.CyclicalCountInfo), paramName);
MarshalUsingAttributeParser.cs (1)
95
_diagnostics.ReportInvalidMarshallingAttributeInfo(attributeData, nameof(
SR
.ConstantAndElementCountInfoDisallowed));
UseSiteAttributeProvider.cs (2)
46
diagnostics.ReportInvalidMarshallingAttributeInfo(attribute, nameof(
SR
.DuplicateMarshallingInfo), indirectionDepth.ToString());
95
nameof(
SR
.ExtraneousMarshallingInfo),