109 references to SR
Microsoft.Interop.JavaScript.JSImportGenerator (109)
GeneratorDiagnostics.cs (46)
36GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 37GetResourceString(nameof(SR.ConfigurationNotSupportedMessage)), 41description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 46GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 47GetResourceString(nameof(SR.ConfigurationNotSupportedMessageValue)), 51description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 56GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 57GetResourceString(nameof(SR.ConfigurationNotSupportedMessageMarshallingInfo)), 61description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 66GetResourceString(nameof(SR.TypeNotSupportedTitle)), 67GetResourceString(nameof(SR.TypeNotSupportedMessageReturnWithDetails)), 71description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 76GetResourceString(nameof(SR.TypeNotSupportedTitle)), 77GetResourceString(nameof(SR.TypeNotSupportedMessageParameter)), 81description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 86GetResourceString(nameof(SR.TypeNotSupportedTitle)), 87GetResourceString(nameof(SR.TypeNotSupportedMessageReturn)), 91description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 96GetResourceString(nameof(SR.TypeNotSupportedTitle)), 97GetResourceString(nameof(SR.TypeNotSupportedMessageParameterWithDetails)), 101description: GetResourceString(nameof(SR.TypeNotSupportedDescription))); 106GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 107GetResourceString(nameof(SR.ConfigurationNotSupportedMessageParameter)), 111description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 116GetResourceString(nameof(SR.ConfigurationNotSupportedTitle)), 117GetResourceString(nameof(SR.ConfigurationNotSupportedMessageReturn)), 121description: GetResourceString(nameof(SR.ConfigurationNotSupportedDescription))); 126GetResourceString(nameof(SR.InvalidJSImportAttributeUsageTitle)), 127GetResourceString(nameof(SR.InvalidJSImportAttributedMethodSignatureMessage)), 131description: GetResourceString(nameof(SR.InvalidJSImportAttributedMethodDescription))); 136GetResourceString(nameof(SR.InvalidJSExportAttributeUsageTitle)), 137GetResourceString(nameof(SR.InvalidJSExportAttributedMethodSignatureMessage)), 141description: GetResourceString(nameof(SR.InvalidJSExportAttributedMethodDescription))); 146GetResourceString(nameof(SR.InvalidJSImportAttributeUsageTitle)), 147GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessage)), 151description: GetResourceString(nameof(SR.InvalidJSImportAttributedMethodDescription))); 156GetResourceString(nameof(SR.InvalidJSExportAttributeUsageTitle)), 157GetResourceString(nameof(SR.InvalidAttributedMethodContainingTypeMissingModifiersMessage)), 161description: GetResourceString(nameof(SR.InvalidJSExportAttributedMethodDescription))); 166GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksTitle)), 167GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksMessage)), 171description: GetResourceString(nameof(SR.JSImportRequiresAllowUnsafeBlocksDescription))); 176GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksTitle)), 177GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksMessage)), 181description: GetResourceString(nameof(SR.JSExportRequiresAllowUnsafeBlocksDescription))); 185return new LocalizableResourceString(resourceName, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSExportGenerator.cs (2)
190var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR)); 325var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
JSGeneratorFactory.cs (58)
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)), 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)), 312return failWithReason(SR.FuncTooManyArgs);
JSImportGenerator.cs (2)
173var generatorDiagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), locations, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR)); 202var diagnostics = new GeneratorDiagnosticsBag(new DescriptorProvider(), incrementalContext.DiagnosticLocation, SR.ResourceManager, typeof(FxResources.Microsoft.Interop.JavaScript.JSImportGenerator.SR));
NoSpanAndTaskMixingResolver.cs (1)
35NotSupportedDetails = SR.SpanAndTaskNotSupported