35 implementations of GetInternalSymbol
Microsoft.CodeAnalysis (22)
CodeGen\ArrayMembers.cs (1)
365Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
CodeGen\PrivateImplementationDetails.cs (2)
531Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null; 682Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
Emit\CommonPEModuleBuilder.cs (1)
272Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\EditAndContinue\DeletedEventDefinition.cs (1)
76public ISymbolInternal? GetInternalSymbol()
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
97public ISymbolInternal? GetInternalSymbol()
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
136public ISymbolInternal? GetInternalSymbol()
Emit\EditAndContinue\DeletedParameterDefinition.cs (1)
64public ISymbolInternal? GetInternalSymbol()
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
90public ISymbolInternal? GetInternalSymbol()
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
134public ISymbolInternal? GetInternalSymbol()
Emit\ErrorType.cs (2)
183Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null; 247Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedMember.cs (1)
117Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedParameter.cs (1)
221CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedType.cs (1)
560CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
207CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emit\NoPia\VtblGap.cs (1)
178Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
PEWriter\InheritedTypeParameter.cs (1)
193CodeAnalysis.Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
PEWriter\ModifiedTypeReference.cs (1)
148CodeAnalysis.Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
PEWriter\ReturnValueParameter.cs (1)
115CodeAnalysis.Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
PEWriter\RootModuleStaticConstructor.cs (1)
106CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
PEWriter\RootModuleType.cs (1)
325CodeAnalysis.Symbols.ISymbolInternal? Cci.IReference.GetInternalSymbol() => null;
Microsoft.CodeAnalysis.CSharp (6)
Emitter\Model\AssemblyReference.cs (1)
58CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
156CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emitter\Model\ModuleReference.cs (1)
91CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => null;
Emitter\Model\NamedTypeReference.cs (1)
166CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => UnderlyingNamedType;
Emitter\Model\SymbolAdapter.cs (1)
34CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => AdaptedSymbol;
Emitter\Model\TypeMemberReference.cs (1)
51CodeAnalysis.Symbols.ISymbolInternal Cci.IReference.GetInternalSymbol() => UnderlyingSymbol;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AssemblyReference.cs (1)
46Symbols.ISymbolInternal? IReference.GetInternalSymbol() => null;
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler.Utilities (1)
NamespaceTypeDefinitionNoBase.cs (1)
128Symbols.ISymbolInternal IReference.GetInternalSymbol() => null;
Microsoft.CodeAnalysis.VisualBasic (5)
Emit\AssemblyReference.vb (1)
60Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\ModuleReference.vb (1)
73Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\NamedTypeReference.vb (1)
120Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\SymbolAdapter.vb (1)
26Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\TypeMemberReference.vb (1)
39Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
156 references to GetInternalSymbol
Microsoft.CodeAnalysis (32)
CodeGen\ArrayMembers.cs (1)
363=> ((object?)arrayType.GetInternalSymbol() ?? arrayType).ToString() + "." + Name;
CodeGen\PermissionSetAttribute.cs (1)
84ISymbol iSymbol = _sourceAttribute.GetType(context).GetInternalSymbol()!.GetISymbol();
CodeGen\PrivateImplementationDetails.cs (2)
483public override string ToString() => $"{(object?)_type.GetInternalSymbol() ?? _type} {(object?)_containingType.GetInternalSymbol() ?? _containingType}.{this.Name}";
Emit\CommonPEModuleBuilder.cs (5)
308Debug.Assert(body == null || (object)methodSymbol == body.MethodDefinition.GetInternalSymbol()); 804builder.Add(field.GetInternalSymbol()); 812builder.Add(method.GetInternalSymbol()); 820builder.Add(property.GetInternalSymbol()); 828builder.Add(type.GetInternalSymbol());
Emit\EditAndContinue\DeletedEventDefinition.cs (1)
78return OldDefinition.GetInternalSymbol();
Emit\EditAndContinue\DeletedGenericParameter.cs (1)
99return OldDefinition.GetInternalSymbol();
Emit\EditAndContinue\DeletedMethodDefinition.cs (1)
138return OldDefinition.GetInternalSymbol();
Emit\EditAndContinue\DeletedParameterDefinition.cs (1)
66return OldDefinition.GetInternalSymbol();
Emit\EditAndContinue\DeletedPropertyDefinition.cs (1)
92return OldDefinition.GetInternalSymbol();
Emit\EditAndContinue\DeletedTypeDefinition.cs (1)
136return _oldTypeReference.GetInternalSymbol();
Emit\EditAndContinue\DeltaMetadataWriter.cs (3)
786ReportReferencesToAddedSymbol(typeRef.GetInternalSymbol()); 791ReportReferencesToAddedSymbol(memberRef.GetInternalSymbol()); 870if (translatedType.GetInternalSymbol() is ITypeSymbolInternal typeSymbol)
Emit\EditAndContinue\SymbolChanges.cs (4)
75var containingSymbol = containingType.GetInternalSymbol()?.GetISymbol(); 140=> definition.GetInternalSymbol() is { } internalSymbol && IsReplaced(internalSymbol.GetISymbol(), checkEnclosingTypes); 210var symbol = def.GetInternalSymbol(); 588var field = fieldDefinition.GetInternalSymbol()?.GetISymbol();
Emit\EditAndContinue\SymbolMatcher.cs (1)
24MapDefinition(definition)?.GetInternalSymbol() :
Emit\NoPia\CommonEmbeddedMethod.cs (1)
306return UnderlyingMethod.GetInternalSymbol().GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
Emit\NoPia\CommonEmbeddedType.cs (1)
714return UnderlyingNamedType.GetInternalSymbol().GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat);
PEWriter\MetadataWriter.cs (1)
1449symbol = (errorEntity as Cci.IReference)?.GetInternalSymbol();
PEWriter\SymbolEquivalentEqualityComparer.cs (3)
37var xSymbol = x.GetInternalSymbol(); 38var ySymbol = y.GetInternalSymbol(); 50var objSymbol = obj?.GetInternalSymbol();
PEWriter\UsedNamespaceOrType.cs (3)
96var xSymbol = x.GetInternalSymbol(); 97var ySymbol = y.GetInternalSymbol(); 113var objSymbol = obj?.GetInternalSymbol();
Microsoft.CodeAnalysis.CSharp (26)
Compiler\MethodCompiler.cs (1)
676var method = (MethodSymbol)definition.GetInternalSymbol();
Emitter\EditAndContinue\CSharpDefinitionMap.cs (5)
61if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PENamedTypeSymbol other) 73if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEEventSymbol other) 85if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEFieldSymbol other) 97if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEMethodSymbol other) 109if (_mapToMetadata.MapDefinition(def)?.GetInternalSymbol() is PEPropertySymbol other)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (6)
66if (definition.GetInternalSymbol() is Symbol symbol) 87if (reference.GetInternalSymbol() is Symbol symbol) 548return (NamedTypeSymbol?)value.Type?.GetInternalSymbol(); 556return (NamedTypeSymbol?)value.Type?.GetInternalSymbol(); 561return (NamedTypeSymbol?)value.Delegate?.GetInternalSymbol(); 705otherType.Type.GetInternalSymbol() is NamedTypeSymbol otherDelegateType &&
Emitter\Model\ExpandedVarargsMethodReference.cs (1)
184Append(result, _underlyingMethod.GetInternalSymbol() ?? (object)_underlyingMethod);
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
394var method = m.GetInternalSymbol() as MethodSymbol;
Emitter\Model\PEModuleBuilder.cs (11)
657var type = (NamedTypeSymbol)exportedType.Type.GetInternalSymbol(); 827var namedType = typeRef.GetInternalSymbol() as NamedTypeSymbol; 1846var actuallyAddedThrowMethod = (SynthesizedThrowMethod)privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedThrowFunctionName)!.GetInternalSymbol()!; 1851var internalSymbol = (SynthesizedThrowIfNullMethod)throwIfNullAdapter.GetInternalSymbol()!; 1853Debug.Assert((object?)privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedThrowFunctionName)!.GetInternalSymbol() == internalSymbol.ThrowMethod); 1866return (MethodSymbol)throwSwitchExpressionAdapter.GetInternalSymbol()!; 1875return (MethodSymbol)privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedThrowSwitchExpressionExceptionFunctionName)!.GetInternalSymbol()!; 1887return (MethodSymbol)throwSwitchExpressionAdapter.GetInternalSymbol()!; 1900return (MethodSymbol)privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedThrowSwitchExpressionExceptionParameterlessFunctionName)!.GetInternalSymbol()!; 1912return (MethodSymbol)throwAdapter.GetInternalSymbol()!; 1925return (MethodSymbol)privateImplClass.GetMethod(PrivateImplementationDetails.SynthesizedThrowInvalidOperationExceptionFunctionName)!.GetInternalSymbol()!;
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
50ArrayTypeSymbol payloadArrayType = (ArrayTypeSymbol)payloadRoot.Value.Type.GetInternalSymbol();
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (28)
Emit\CompilationEmitTests.cs (1)
2732var cciMethods = class1TypeDef.GetMethods(context).Where(m => ((MethodSymbol)m.GetInternalSymbol()).MethodKind != MethodKind.Constructor);
Emit\EditAndContinue\SymbolMatcherTests.cs (26)
215var other = (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol(); 267Assert.Same(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 268Assert.Same(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 317Assert.Equal(f0, (MethodSymbol)matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 318Assert.Equal(g0, (MethodSymbol)matcher.MapDefinition(g1.GetCciAdapter()).GetInternalSymbol()); 356Assert.Equal(f0, mf1.GetInternalSymbol()); 1044Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 1045Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 1101Assert.Same(s0, matcher.MapDefinition(s1.GetCciAdapter()).GetInternalSymbol()); 1102Assert.Same(t0, matcher.MapDefinition(t1.GetCciAdapter()).GetInternalSymbol()); 1147Assert.Equal("I<System.Int32,System.Boolean>.Item", ((PropertySymbol)mappedProperty.GetInternalSymbol()).MetadataName); 1413Assert.Same(x0, matcher.MapDefinition(x1.GetCciAdapter()).GetInternalSymbol()); 1414Assert.Same(y0, matcher.MapDefinition(y1.GetCciAdapter()).GetInternalSymbol()); 1415Assert.Same(m0, matcher.MapDefinition(m1.GetCciAdapter()).GetInternalSymbol()); 1416Assert.Same(n0, matcher.MapDefinition(n1.GetCciAdapter()).GetInternalSymbol()); 1417Assert.Same(p0, matcher.MapDefinition(p1.GetCciAdapter()).GetInternalSymbol()); 1418Assert.Same(q0, matcher.MapDefinition(q1.GetCciAdapter()).GetInternalSymbol()); 1419Assert.Same(e0, matcher.MapDefinition(e1.GetCciAdapter()).GetInternalSymbol()); 1420Assert.Same(f0, matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol()); 1458Assert.Same(f_0, matcher.MapDefinition(f_1.GetCciAdapter()).GetInternalSymbol()); 1622Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1654Assert.Equal(member0, (MethodSymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 1684Assert.Equal(member0, (PropertySymbol)matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol()); 2027Assert.Same(members0[i], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol()); 2078Assert.Same(members0[i], matcher.MapDefinition(members1[i * 2].GetCciAdapter()).GetInternalSymbol()); 2139Assert.Same(members0[i * 2], matcher.MapDefinition(members1[i].GetCciAdapter()).GetInternalSymbol());
Emit\EmitMetadataTests.cs (1)
1420Assert.Same(fieldDefinition.GetInternalSymbol(), field); // Dev10: value__ field is the first field.
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.cs (2)
2095var localType = (NamedTypeSymbol)local.Type.GetInternalSymbol(); 2164var localType = (TypeSymbol)local.Type.GetInternalSymbol();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Symbols\Source\BaseClassTests.cs (1)
1578.Select(impl => impl.TypeRef.GetInternalSymbol()).Cast<NamedTypeSymbol>().AsImmutable();
Symbols\Source\MethodTests.cs (18)
1686Assert.Equal(@class, explicitOverride.ContainingType.GetInternalSymbol()); 1687Assert.Equal(classMethod, explicitOverride.ImplementingMethod.GetInternalSymbol()); 1688Assert.Equal(interfaceMethod, explicitOverride.ImplementedMethod.GetInternalSymbol()); 1730Assert.Equal(@class, explicitOverride.ContainingType.GetInternalSymbol()); 1731Assert.Equal(classMethod, explicitOverride.ImplementingMethod.GetInternalSymbol()); 1732Assert.Equal(interfaceMethod, explicitOverride.ImplementedMethod.GetInternalSymbol()); 1777Assert.Equal(@class, explicitOverride.ContainingType.GetInternalSymbol()); 1778Assert.Equal(classMethod, explicitOverride.ImplementingMethod.GetInternalSymbol()); 1779Assert.Equal(interfaceMethod, explicitOverride.ImplementedMethod.GetInternalSymbol()); 1831Assert.Equal(@class, explicitOverride.ContainingType.GetInternalSymbol()); 1832Assert.Equal(classMethod, explicitOverride.ImplementingMethod.GetInternalSymbol()); 1835Assert.Equal(substitutedInterface, explicitOverrideImplementedMethod.GetContainingType(context).GetInternalSymbol()); 1972Assert.Equal(classC, explicitOverride.ContainingType.GetInternalSymbol()); 1973Assert.Equal(methodC, explicitOverride.ImplementingMethod.GetInternalSymbol()); 1974Assert.Equal(methodA, explicitOverride.ImplementedMethod.GetInternalSymbol()); 2016Assert.Equal(classC, explicitOverride.ContainingType.GetInternalSymbol()); 2017Assert.Equal(methodC, explicitOverride.ImplementingMethod.GetInternalSymbol()); 2018Assert.Equal(methodA, explicitOverride.ImplementedMethod.GetInternalSymbol());
Symbols\Source\PropertyTests.cs (8)
2511Assert.True(explicitOverrides.All(@override => ReferenceEquals(@class, @override.ContainingType.GetInternalSymbol()))); 2515Assert.Equal(classPropertyGetter, getterOverride.ImplementingMethod.GetInternalSymbol()); 2516Assert.Equal(interfacePropertyGetter.ContainingType, getterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol()); 2520Assert.Equal(classPropertySetter, setterOverride.ImplementingMethod.GetInternalSymbol()); 2521Assert.Equal(interfacePropertySetter.ContainingType, setterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol()); 2549Assert.True(explicitOverrides.All(@override => ReferenceEquals(@class, @override.ContainingType.GetInternalSymbol()))); 2553Assert.Equal(classPropertyGetter, getterOverride.ImplementingMethod.GetInternalSymbol()); 2554Assert.Equal(interfacePropertyGetter.ContainingType, getterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
1924symbol = (type as Cci.IReference)?.GetInternalSymbol() as Symbol;
Microsoft.CodeAnalysis.Test.Utilities (2)
Metadata\ILBuilderVisualizer.cs (2)
62ISymbol symbol = ((reference as ISymbolInternal) ?? (reference as Cci.IReference)?.GetInternalSymbol())?.GetISymbol(); 68return (((type as ISymbolInternal) ?? (type as Cci.IReference)?.GetInternalSymbol()) is ISymbolInternal symbol) ? symbol.GetISymbol().ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat) : type.ToString();
Microsoft.CodeAnalysis.VisualBasic (20)
CodeGen\EmitStatement.vb (1)
1105Dim UInt32Type = DirectCast(_module.GetSpecialType(SpecialType.System_UInt32, syntaxNode, _diagnostics).GetInternalSymbol(), TypeSymbol)
Compilation\MethodCompiler.vb (2)
876Dim method = DirectCast(methodDef.GetInternalSymbol(), MethodSymbol) 1710Dim field = DirectCast(def.GetInternalSymbol(), StateMachineFieldSymbol)
Emit\AssemblyReference.vb (1)
60Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (5)
73Dim other = TryCast(_mapToMetadata.MapDefinition(def)?.GetInternalSymbol(), PENamedTypeSymbol) 84Dim other = TryCast(_mapToMetadata.MapDefinition(def)?.GetInternalSymbol(), PEEventSymbol) 95Dim other = TryCast(_mapToMetadata.MapDefinition(def)?.GetInternalSymbol(), PEFieldSymbol) 106Dim other = TryCast(_mapToMetadata.MapDefinition(def)?.GetInternalSymbol(), PEMethodSymbol) 117Dim other = TryCast(_mapToMetadata.MapDefinition(def)?.GetInternalSymbol(), PEPropertySymbol)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (3)
47Dim symbol As Symbol = TryCast(definition.GetInternalSymbol(), Symbol) 62Dim symbol As Symbol = TryCast(reference.GetInternalSymbol(), Symbol) 448Return DirectCast(value.Type?.GetInternalSymbol(), NamedTypeSymbol)
Emit\ModuleReference.vb (1)
73Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\NamedTypeReference.vb (1)
120Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\NamedTypeSymbolAdapter.vb (1)
284Dim method = TryCast(synthetic.GetInternalSymbol(), MethodSymbol)
Emit\PEModuleBuilder.vb (2)
440Dim type = DirectCast(typeReference.GetInternalSymbol(), NamedTypeSymbol) 615Dim namedType = TryCast(typeRef.GetInternalSymbol(), NamedTypeSymbol)
Emit\SymbolAdapter.vb (1)
26Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (1)
81Dim payloadArrayType As ArrayTypeSymbol = DirectCast(payloadRoot.Value.Type.GetInternalSymbol(), ArrayTypeSymbol)
Emit\TypeMemberReference.vb (1)
39Private Function IReferenceGetInternalSymbol() As CodeAnalysis.Symbols.ISymbolInternal Implements Cci.IReference.GetInternalSymbol
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (11)
Emit\EditAndContinue\EditAndContinueTests.vb (3)
1026Dim other = DirectCast(matcher.MapDefinition(DirectCast(member.GetCciAdapter(), Cci.IMethodDefinition)).GetInternalSymbol(), MethodSymbol) 1050Dim other = DirectCast(matcher.MapDefinition(DirectCast(member.GetCciAdapter(), Cci.IMethodDefinition)).GetInternalSymbol(), MethodSymbol) 1084Dim other = DirectCast(matcher.MapDefinition(DirectCast(member1.GetCciAdapter(), Cci.IMethodDefinition)).GetInternalSymbol(), MethodSymbol)
Emit\EditAndContinue\SymbolMatcherTests.vb (8)
167Dim other = DirectCast(matcher.MapDefinition(member1.GetCciAdapter()).GetInternalSymbol(), MethodSymbol) 195Dim mf1 = matcher.MapDefinition(f1.GetCciAdapter()).GetInternalSymbol() 609Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceFieldSymbol) 747Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceMemberMethodSymbol) 825Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourcePropertySymbol) 887Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceFieldSymbol) 919Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceNamedTypeSymbol) 950Dim otherSymbol = DirectCast(other.GetInternalSymbol(), SourceNamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.vb (2)
2028Dim localType = DirectCast(local.Type.GetInternalSymbol(), NamedTypeSymbol) 2082Assert.Equal(method, DirectCast(locals.Single().Type.GetInternalSymbol(), TypeSymbol).ContainingSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (5)
SymbolsTests\Source\PropertyTests.vb (5)
8204Assert.True(explicitOverrides.All(Function(override) [class] Is override.ContainingType.GetInternalSymbol())) 8208Assert.Equal(classPropertyGetter, getterOverride.ImplementingMethod.GetInternalSymbol()) 8209Assert.Equal(interfacePropertyGetter.ContainingType, getterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol()) 8213Assert.Equal(classPropertySetter, setterOverride.ImplementingMethod.GetInternalSymbol()) 8214Assert.Equal(interfacePropertySetter.ContainingType, setterOverride.ImplementedMethod.GetContainingType(context).GetInternalSymbol())