61 references to ImplicitConversionName
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
116if (conversion.IsUserDefined && conversion.MethodSymbol is { Name: WellKnownMemberNames.ImplicitConversionName })
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Conversions.cs (2)
499WellKnownMemberNames.ImplicitConversionName, 511WellKnownMemberNames.ImplicitConversionName,
Binder\Binder_Crefs.cs (1)
280memberName = WellKnownMemberNames.ImplicitConversionName;
Binder\Semantics\Conversions\UserDefinedExplicitConversions.cs (1)
222isExplicit ? (isChecked ? WellKnownMemberNames.CheckedExplicitConversionName : WellKnownMemberNames.ExplicitConversionName) : WellKnownMemberNames.ImplicitConversionName,
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
290declaringType.AddOperators(WellKnownMemberNames.ImplicitConversionName, operators);
Binder\Semantics\Operators\OperatorFacts.cs (1)
161return WellKnownMemberNames.ImplicitConversionName;
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
721else if (operatorName == WellKnownMemberNames.ImplicitConversionName)
Symbols\ConversionSignatureComparer.cs (2)
53&& (member1.Name == WellKnownMemberNames.ImplicitConversionName || member2.Name == WellKnownMemberNames.ImplicitConversionName || member1.Name == member2.Name);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1242case WellKnownMemberNames.ImplicitConversionName:
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (2)
360case WellKnownMemberNames.ImplicitConversionName: 426case WellKnownMemberNames.ImplicitConversionName:
Syntax\SyntaxKindFacts.cs (1)
1050case WellKnownMemberNames.ImplicitConversionName: return SyntaxKind.ImplicitKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
68WellKnownMemberNames.ImplicitConversionName, 69WellKnownMemberNames.ImplicitConversionName,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
55var keyword = method.MetadataName == WellKnownMemberNames.ImplicitConversionName
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
68WellKnownMemberNames.ImplicitConversionName, 69WellKnownMemberNames.ImplicitConversionName,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\ForEachTests.cs (1)
2176var udc = comp.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ImplicitConversionName);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (1)
2996compilation.CreateBuiltinOperator(WellKnownMemberNames.ImplicitConversionName, intType, intType));
Compilation\GetSemanticInfoTests.cs (1)
2687CheckOperatorSemanticInfo(text, WellKnownMemberNames.ImplicitConversionName);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
4434var conversion = compilation.GlobalNamespace.GetMember<INamedTypeSymbol>("C").GetMember<IMethodSymbol>(WellKnownMemberNames.ImplicitConversionName); 4446var lookupSymbols = model.LookupSymbols(conversionDecl.DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart, name: WellKnownMemberNames.ImplicitConversionName);
DocumentationComments\CrefTests.cs (7)
2750var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMember<MethodSymbol>(WellKnownMemberNames.ImplicitConversionName); 2804var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ImplicitConversionName).OfType<MethodSymbol>(). 2840var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>("C").GetMembers(WellKnownMemberNames.ImplicitConversionName).OfType<MethodSymbol>(). 2881var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ImplicitConversionName).InstanceConstructors.Single(); 2923var expectedSymbol = compilation.GlobalNamespace.GetMember<NamedTypeSymbol>(WellKnownMemberNames.ImplicitConversionName).InstanceConstructors.Single(); 3128var expectedOperator = typeC.GetMember<MethodSymbol>(WellKnownMemberNames.ImplicitConversionName).ISymbol; 6114var expectedCrefSymbol = expectedReturnTypeSymbol.GetMember<IMethodSymbol>(WellKnownMemberNames.ImplicitConversionName);
Symbols\StaticAbstractMembersInInterfacesTests.cs (1)
27778("implicit", _) => WellKnownMemberNames.ImplicitConversionName,
Symbols\TypeTests.cs (1)
1630mem = topType.GetMembers(WellKnownMemberNames.ImplicitConversionName).Single();
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CodeGeneration\CSharpSyntaxGenerator.cs (3)
280if (operatorName is WellKnownMemberNames.ImplicitConversionName or WellKnownMemberNames.ExplicitConversionName) 282var isImplicit = operatorName is WellKnownMemberNames.ImplicitConversionName; 317OperatorKind.ImplicitConversion => WellKnownMemberNames.ImplicitConversionName,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
55var keyword = method.MetadataName == WellKnownMemberNames.ImplicitConversionName
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
998m.Name == WellKnownMemberNames.ImplicitConversionName && m.Parameters[0].Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)));
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (1)
116if (conversion.IsUserDefined && conversion.MethodSymbol is { Name: WellKnownMemberNames.ImplicitConversionName })
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\DocumentationCommentCrefBinder.vb (1)
1064WellKnownMemberNames.ImplicitConversionName, New OverloadResolution.OperatorInfo(UnaryOperatorKind.Implicit),
Semantics\Operators.vb (3)
116operators.Add(WellKnownMemberNames.ImplicitConversionName, New OperatorInfo(UnaryOperatorKind.Implicit)) 280Return WellKnownMemberNames.ImplicitConversionName 2837WellKnownMemberNames.ImplicitConversionName, New OperatorInfo(UnaryOperatorKind.Implicit),
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
409If CaseInsensitiveComparison.Equals(symbol.Name, WellKnownMemberNames.ImplicitConversionName) Then
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
460Return ComputeMethodKindForPotentialOperatorOrConversion(opInfo, MethodKind.Conversion, WellKnownMemberNames.ImplicitConversionName, True)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
3642Dim otherName As String = If(IdentifierComparison.Equals(WellKnownMemberNames.ImplicitConversionName, method.Name), 3643WellKnownMemberNames.ExplicitConversionName, WellKnownMemberNames.ImplicitConversionName)
Symbols\Source\SourceMethodSymbol.vb (2)
318Debug.Assert(name.Equals(WellKnownMemberNames.ImplicitConversionName) = ((flags And SourceMemberFlags.Widening) <> 0)) 1007Return WellKnownMemberNames.ImplicitConversionName
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
73WellKnownMemberNames.ImplicitConversionName)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConversionGenerator.vb (1)
46If(method.MetadataName = WellKnownMemberNames.ImplicitConversionName,
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateConversionService.vb (1)
73WellKnownMemberNames.ImplicitConversionName)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\CompilationAPITests.vb (1)
1873Assert.Throws(Of ArgumentException)(Nothing, Function() compilation.CreateBuiltinOperator(WellKnownMemberNames.ImplicitConversionName, intType, intType))
Semantics\ForeachTest.vb (1)
1247Dim udc = comp.GlobalNamespace.GetMember(Of NamedTypeSymbol)("C").GetMember(Of MethodSymbol)(WellKnownMemberNames.ImplicitConversionName)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
761Return WellKnownMemberNames.ImplicitConversionName
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConversionGenerator.vb (1)
46If(method.MetadataName = WellKnownMemberNames.ImplicitConversionName,
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
1076Function(m) m.Name = WellKnownMemberNames.ImplicitConversionName AndAlso m.Parameters(0).Type.Equals(_emptyCompilation.GetSpecialType(SpecialType.System_Byte)))
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (1)
285isImplicitConversion: method.Name is WellKnownMemberNames.ImplicitConversionName,
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)
203case WellKnownMemberNames.ImplicitConversionName:
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
ObjectBrowser\DescriptionBuilder.vb (1)
140Case WellKnownMemberNames.ImplicitConversionName