115 references to SR
Microsoft.Interop.JavaScript.JSImportGenerator (115)
Analyzers\JSExportDiagnosticsAnalyzer.cs (1)
34
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
Analyzers\JSImportDiagnosticsAnalyzer.cs (1)
34
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
GeneratorDiagnostics.cs (46)
35
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
36
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessage)),
40
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
45
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
46
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageValue)),
50
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
55
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
56
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageMarshallingInfo)),
60
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
65
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
66
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturnWithDetails)),
70
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
75
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
76
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameter)),
80
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
85
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
86
GetResourceString(nameof(
SR
.TypeNotSupportedMessageReturn)),
90
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
95
GetResourceString(nameof(
SR
.TypeNotSupportedTitle)),
96
GetResourceString(nameof(
SR
.TypeNotSupportedMessageParameterWithDetails)),
100
description: GetResourceString(nameof(
SR
.TypeNotSupportedDescription)));
105
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
106
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageParameter)),
110
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
115
GetResourceString(nameof(
SR
.ConfigurationNotSupportedTitle)),
116
GetResourceString(nameof(
SR
.ConfigurationNotSupportedMessageReturn)),
120
description: GetResourceString(nameof(
SR
.ConfigurationNotSupportedDescription)));
125
GetResourceString(nameof(
SR
.InvalidJSImportAttributeUsageTitle)),
126
GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodSignatureMessage)),
130
description: GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodDescription)));
135
GetResourceString(nameof(
SR
.InvalidJSExportAttributeUsageTitle)),
136
GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodSignatureMessage)),
140
description: GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodDescription)));
145
GetResourceString(nameof(
SR
.InvalidJSImportAttributeUsageTitle)),
146
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
150
description: GetResourceString(nameof(
SR
.InvalidJSImportAttributedMethodDescription)));
155
GetResourceString(nameof(
SR
.InvalidJSExportAttributeUsageTitle)),
156
GetResourceString(nameof(
SR
.InvalidAttributedMethodContainingTypeMissingModifiersMessage)),
160
description: GetResourceString(nameof(
SR
.InvalidJSExportAttributedMethodDescription)));
165
GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksTitle)),
166
GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksMessage)),
170
description: GetResourceString(nameof(
SR
.JSImportRequiresAllowUnsafeBlocksDescription)));
175
GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksTitle)),
176
GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksMessage)),
180
description: GetResourceString(nameof(
SR
.JSExportRequiresAllowUnsafeBlocksDescription)));
184
return new LocalizableResourceString(resourceName,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSExportGenerator.cs (2)
100
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
156
var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSGeneratorFactory.cs (62)
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)),
230
(KnownManagedType.Array, JSTypeFlags.Array, _, [_]) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
233
(KnownManagedType.Array, JSTypeFlags.Missing, [KnownManagedType.Object], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
242
(KnownManagedType.Span, JSTypeFlags.MemoryView, _, _) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
245
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Byte], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
246
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Int32], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
247
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Double], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
248
(KnownManagedType.Span, JSTypeFlags.Missing, [KnownManagedType.Single], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
257
(KnownManagedType.ArraySegment, JSTypeFlags.MemoryView, _, _) => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
260
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Byte], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
261
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Int32], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
262
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Double], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
263
(KnownManagedType.ArraySegment, JSTypeFlags.Missing, [KnownManagedType.Single], _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
267
=> failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
270
=> failWithReason(
SR
.Format(
SR
.FuncArgumentNotSupported, invalidArgType)),
275
(KnownManagedType.Function or KnownManagedType.Action, JSTypeFlags.Missing, _, _) => failWithReason(
SR
.Format(
SR
.UseJSMarshalAsAttribute, info.ManagedType.FullTypeName)),
278
(not KnownManagedType.Void, JSTypeFlags.Discard, _, _) => failWithReason(
SR
.DiscardOnlyVoid),
279
(not KnownManagedType.Void, JSTypeFlags.DiscardNoWait, _, _) => failWithReason(
SR
.DiscardNoWaitOnlyVoid),
282
_ => failWithReason(
SR
.Format(
SR
.TypeNotSupportedName, info.ManagedType.FullTypeName)),
318
return failWithReason(
SR
.FuncTooManyArgs);
JSImportGenerator.cs (2)
100
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
111
var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
NoSpanAndTaskMixingResolver.cs (1)
35
NotSupportedDetails =
SR
.SpanAndTaskNotSupported