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)
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)
166
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
296
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)
149
var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
173
var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation,
SR
.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
NoSpanAndTaskMixingResolver.cs (1)
35
NotSupportedDetails =
SR
.SpanAndTaskNotSupported