10 references to ERR_InteropStructContainsMethods
Microsoft.CodeAnalysis.CSharp (3)
Emitter\NoPia\EmbeddedTypesManager.cs (2)
460
ReportNotEmbeddableSymbol(ErrorCode.
ERR_InteropStructContainsMethods
, field.AdaptedFieldSymbol.ContainingType, syntaxNodeOpt, diagnostics, this);
495
ReportNotEmbeddableSymbol(ErrorCode.
ERR_InteropStructContainsMethods
, type.UnderlyingNamedType.AdaptedNamedTypeSymbol, syntaxNodeOpt, diagnostics, this);
Errors\ErrorFacts.cs (1)
1394
or ErrorCode.
ERR_InteropStructContainsMethods
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (5)
Emit\NoPiaEmbedTypes.cs (5)
518
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "default(Test21)").WithArguments("Test21")
568
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "default(Test21)").WithArguments("Test21")
618
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "default(Test21)").WithArguments("Test21")
668
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "default(Test21)").WithArguments("Test21")
718
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "default(Test21)").WithArguments("Test21")
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\StructConstructorTests.cs (1)
3680
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "i.F1()").WithArguments("S1").WithLocation(6, 18));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\SymbolErrorTests.cs (1)
16399
Diagnostic(ErrorCode.
ERR_InteropStructContainsMethods
, "new NS.MyStruct()").WithArguments("NS.MyStruct"));