109 references to SR
Microsoft.Interop.JavaScript.JSImportGenerator (109)
GeneratorDiagnostics.cs (46)
36
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
37
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessage)),
41
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
46
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
47
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageValue)),
51
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
56
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
57
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageMarshallingInfo)),
61
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
66
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
67
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnWithDetails)),
71
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
76
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
77
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameter)),
81
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
86
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
87
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturn)),
91
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
96
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
97
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterWithDetails)),
101
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
106
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
107
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageParameter)),
111
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
116
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
117
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageReturn)),
121
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
126
GetResourceString(nameof(
SR
.InvalidJSImportAttributeUsageTitle)),
127
GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodSignatureMessage)),
131
description: GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodDescription)));
136
GetResourceString(nameof(
SR
.InvalidJSExportAttributeUsageTitle)),
137
GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodSignatureMessage)),
141
description: GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodDescription)));
146
GetResourceString(nameof(
SR
.InvalidJSImportAttributeUsageTitle)),
147
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
151
description: GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodDescription)));
156
GetResourceString(nameof(
SR
.InvalidJSExportAttributeUsageTitle)),
157
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
161
description: GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodDescription)));
166
GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksTitle)),
167
GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksMessage)),
171
description: GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksDescription)));
176
GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksTitle)),
177
GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksMessage)),
181
description: GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksDescription)));
185
return new LocalizableResourceString(resourceName,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSExportGenerator.cs (2)
190
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
325
var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSGeneratorFactory.cs (58)
25
NotSupportedDetails =
SR
.InOutRefNotSupported
135
(KnownManagedType.Int64, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
136
(KnownManagedType.DateTime, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
137
(KnownManagedType.DateTimeOffset, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
138
(KnownManagedType.Object, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
165
(KnownManagedType.Nullable, JSTypeFlags.Missing, [KnownManagedType.Int64], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
166
(KnownManagedType.Nullable, JSTypeFlags.Missing, [KnownManagedType.DateTime], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
167
(KnownManagedType.Nullable, JSTypeFlags.Missing, [KnownManagedType.DateTimeOffset], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
169
(KnownManagedType.Nullable, _, _, _) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
206
(KnownManagedType.Task, JSTypeFlags.Missing, [KnownManagedType.Int64], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
207
(KnownManagedType.Task, JSTypeFlags.Missing, [KnownManagedType.DateTime], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
208
(KnownManagedType.Task, JSTypeFlags.Missing, [KnownManagedType.DateTimeOffset], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
209
(KnownManagedType.Task, JSTypeFlags.Missing, [KnownManagedType.Object], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
211
(KnownManagedType.Task, JSTypeFlags.Promise, _, [_]) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
228
(KnownManagedType.Array, JSTypeFlags.Array, _, [_]) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
231
(KnownManagedType.Array, JSTypeFlags.Missing, [KnownManagedType.Object], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
239
(KnownManagedType.Span, JSTypeFlags.MemoryView, _, _) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
242
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Byte], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
243
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Int32], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
244
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Double], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
252
(KnownManagedType.ArraySegment, JSTypeFlags.MemoryView, _, _) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
255
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Byte], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
256
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Int32], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
257
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Double], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
261
=> failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
264
=> failWithReason(
SR
.Format(
SR
.FuncArgumentNotSupported, invalidArgType)),
269
(KnownManagedType.Function or KnownManagedType.Action, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
272
(not KnownManagedType.Void, JSTypeFlags.Discard, _, _) => failWithReason(
SR
.DiscardOnlyVoid),
273
(not KnownManagedType.Void, JSTypeFlags.DiscardNoWait, _, _) => failWithReason(
SR
.DiscardNoWaitOnlyVoid),
276
_ => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
312
return failWithReason(
SR
.FuncTooManyArgs);
JSImportGenerator.cs (2)
173
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
202
var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
NoSpanAndTaskMixingResolver.cs (1)
35
NotSupportedDetails =
SR
.SpanAndTaskNotSupported