51 references to ExplicitConversionName
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Crefs.cs (1)
288memberName = WellKnownMemberNames.ExplicitConversionName;
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (2)
221isExplicit ? (isChecked ? WellKnownMemberNames.CheckedExplicitConversionName : WellKnownMemberNames.ExplicitConversionName) : WellKnownMemberNames.ImplicitConversionName); 228ImmutableArray<MethodSymbol> operators2 = declaringType.GetOperators(WellKnownMemberNames.ExplicitConversionName);
Binder\Semantics\Operators\OperatorFacts.cs (1)
165WellKnownMemberNames.ExplicitConversionName;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
709if (operatorName is WellKnownMemberNames.ExplicitConversionName or WellKnownMemberNames.CheckedExplicitConversionName)
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1243case WellKnownMemberNames.ExplicitConversionName:
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2487CheckForUnmatchedOperator(diagnostics, WellKnownMemberNames.CheckedExplicitConversionName, WellKnownMemberNames.ExplicitConversionName, symmetricCheck: false);
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
361case WellKnownMemberNames.ExplicitConversionName: 427case WellKnownMemberNames.ExplicitConversionName:
Syntax\SyntaxKindFacts.cs (1)
1043case WellKnownMemberNames.ExplicitConversionName:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
94WellKnownMemberNames.ExplicitConversionName, 95WellKnownMemberNames.ExplicitConversionName,
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
94WellKnownMemberNames.ExplicitConversionName, 95WellKnownMemberNames.ExplicitConversionName,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\ArglistTests.cs (4)
1104var conversion = type.GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 1124var conversion = type.GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 1144var conversion = type.GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 1164var conversion = type.GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\CompilationAPITests.cs (1)
3000compilation.CreateBuiltinOperator(WellKnownMemberNames.ExplicitConversionName, intType, intType));
Compilation\GetSemanticInfoTests.cs (3)
2666CheckOperatorSemanticInfo(text, WellKnownMemberNames.ExplicitConversionName); 2837var conversions = comp.GlobalNamespace.GetMember<INamedTypeSymbol>("S").GetMembers(WellKnownMemberNames.ExplicitConversionName); 2867var conversions = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("S").GetMembers(WellKnownMemberNames.ExplicitConversionName);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
4465var conversion = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 4477var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ExplicitConversionName);
DocumentationComments\CrefTests.cs (3)
2726var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ExplicitConversionName); 2861var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ExplicitConversionName); 2902var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ExplicitConversionName).InstanceConstructors.Single();
Symbols\Source\MethodTests.cs (1)
2087var symbol = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ExplicitConversionName).Single();
Symbols\StaticAbstractMembersInInterfacesTests.cs (1)
27779("explicit", false) => WellKnownMemberNames.ExplicitConversionName,
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
282if (operatorName is WellKnownMemberNames.ImplicitConversionName or WellKnownMemberNames.ExplicitConversionName) 320OperatorKind.ExplicitConversion => WellKnownMemberNames.ExplicitConversionName,
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
160foreach (var member in type.GetMembers(WellKnownMemberNames.ExplicitConversionName))
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
990m.Name == WellKnownMemberNames.ExplicitConversionName && m.Parameters[0].Type.Equals(gcHandleType));
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\DocumentationCommentCrefBinder.vb (1)
1066WellKnownMemberNames.ExplicitConversionName, New OverloadResolution.OperatorInfo(UnaryOperatorKind.Explicit))
Semantics\Operators.vb (3)
117operators.Add(WellKnownMemberNames.ExplicitConversionName, New OperatorInfo(UnaryOperatorKind.Explicit)) 282Return WellKnownMemberNames.ExplicitConversionName 2838WellKnownMemberNames.ExplicitConversionName, New OperatorInfo(UnaryOperatorKind.Explicit),
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
411ElseIf CaseInsensitiveComparison.Equals(symbol.Name, WellKnownMemberNames.ExplicitConversionName) Then
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
445Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.Conversion, WellKnownMemberNames.ExplicitConversionName, True)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
3623WellKnownMemberNames.ExplicitConversionName, WellKnownMemberNames.ImplicitConversionName)
Symbols\Source\SourceMethodSymbol.vb (3)
319Debug.Assert(name.Equals(WellKnownMemberNames.ExplicitConversionName) = ((flags And SourceMemberFlags.Narrowing) <> 0)) 1009Return WellKnownMemberNames.ExplicitConversionName 1013Return WellKnownMemberNames.ExplicitConversionName
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
59WellKnownMemberNames.ExplicitConversionName)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
59WellKnownMemberNames.ExplicitConversionName)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\CompilationAPITests.vb (1)
1876Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.ExplicitConversionName, intType, intType))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
763Return WellKnownMemberNames.ExplicitConversionName
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
1067Function(m) m.Name = WellKnownMemberNames.ExplicitConversionName AndAlso m.Parameters(0).Type.Equals(gcHandleType))
Microsoft.CodeAnalysis.Workspaces (1)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
20=> symbol is { MethodKind: MethodKind.Conversion, Name: WellKnownMemberNames.ExplicitConversionName or WellKnownMemberNames.ImplicitConversionName } &&
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
211case WellKnownMemberNames.ExplicitConversionName:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
131Case WellKnownMemberNames.ExplicitConversionName