115 references to SR
Microsoft.Interop.JavaScript.JSImportGenerator (115)
Analyzers\JSExportDiagnosticsAnalyzer.cs (1)
34var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
Analyzers\JSImportDiagnosticsAnalyzer.cs (1)
34var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
GeneratorDiagnostics.cs (46)
35GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 36GetResourceString(nameof(SR.ConfigurationNotSupportedMessage)), 40description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 45GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 46GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValue)), 50description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 55GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 56GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfo)), 60description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 65GetResourceString(nameof(SR.TypeNotSupportedTitle)), 66GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 70description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 75GetResourceString(nameof(SR.TypeNotSupportedTitle)), 76GetResourceString(nameof(SR.TypeNotSupportedMessageParameter)), 80description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 85GetResourceString(nameof(SR.TypeNotSupportedTitle)), 86GetResourceString(nameof(SR.TypeNotSupportedMessageReturn)), 90description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 95GetResourceString(nameof(SR.TypeNotSupportedTitle)), 96GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 100description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 105GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 106GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameter)), 110description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 115GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 116GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturn)), 120description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 125GetResourceString(nameof(SR.InvalidJSImportAttributeUsageTitle)), 126GetResourceString(nameof(SR.InvalidJSImportAttributedMethodSignatureMessage)), 130description: GetResourceString(nameof(SR.InvalidJSImportAttributedMethodDescription))); 135GetResourceString(nameof(SR.InvalidJSExportAttributeUsageTitle)), 136GetResourceString(nameof(SR.InvalidJSExportAttributedMethodSignatureMessage)), 140description: GetResourceString(nameof(SR.InvalidJSExportAttributedMethodDescription))); 145GetResourceString(nameof(SR.InvalidJSImportAttributeUsageTitle)), 146GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessage)), 150description: GetResourceString(nameof(SR.InvalidJSImportAttributedMethodDescription))); 155GetResourceString(nameof(SR.InvalidJSExportAttributeUsageTitle)), 156GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessage)), 160description: GetResourceString(nameof(SR.InvalidJSExportAttributedMethodDescription))); 165GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksTitle)), 166GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksMessage)), 170description: GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksDescription))); 175GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksTitle)), 176GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksMessage)), 180description: GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksDescription))); 184return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSExportGenerator.cs (2)
100var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR)); 156var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSGeneratorFactory.cs (62)
25NotSupportedDetails = 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)), 318return failWithReason(SR.FuncTooManyArgs);
JSImportGenerator.cs (2)
100var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR)); 111var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
NoSpanAndTaskMixingResolver.cs (1)
35NotSupportedDetails = SR.SpanAndTaskNotSupported