33 references to AsTypeSymbolOnly
Microsoft.CodeAnalysis.VisualBasic (24)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (3)
263
Dim newContainer As TypeSymbol = method.ContainingType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
()
298
Dim newContainer As TypeSymbol = [property].ContainingType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
()
325
Dim newContainer As TypeSymbol = field.ContainingType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
()
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
68
Me._interfaces = originalInterfaces.SelectAsArray(Function(i) DirectCast(i.InternalSubstituteTypeParameters(Me._typeMap).
AsTypeSymbolOnly
(), NamedTypeSymbol))
Symbols\ArrayTypeSymbol.vb (1)
513
newInterfaces = newInterfaces.SelectAsArray(Function([interface], map) DirectCast([interface].InternalSubstituteTypeParameters(map).
AsTypeSymbolOnly
(), NamedTypeSymbol), substitution)
Symbols\InstanceErrorTypeSymbol.vb (1)
88
Dim newContainer = DirectCast(containingType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Symbols\InstanceTypeSymbol.vb (2)
96
newContainer = DirectCast(Me.ContainingType.InternalSubstituteTypeParameters(substitution.Parent).
AsTypeSymbolOnly
(), NamedTypeSymbol)
98
newContainer = DirectCast(Me.ContainingType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Symbols\NamedTypeSymbol.vb (1)
514
Return DirectCast(InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Symbols\Source\ImplementsHelper.vb (1)
676
Dim substitutedInterfaceType = TryCast(unsubstitutedInterfaceType.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), SubstitutedNamedType)
Symbols\Source\SourceMethodSymbol.vb (2)
2110
param.Type.InternalSubstituteTypeParameters(replaceMethodTypeParametersWithFakeTypeParameters).
AsTypeSymbolOnly
(),
2126
returnType:=retType.InternalSubstituteTypeParameters(replaceMethodTypeParametersWithFakeTypeParameters).
AsTypeSymbolOnly
(),
Symbols\SubstitutedErrorType.vb (1)
177
Dim newContainer = DirectCast(containingType.InternalSubstituteTypeParameters(additionalSubstitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Symbols\SubstitutedEventSymbol.vb (1)
70
_originalDefinition.Type.InternalSubstituteTypeParameters(TypeSubstitution).
AsTypeSymbolOnly
(),
Symbols\SubstitutedNamedType.vb (8)
247
Return DirectCast(OriginalDefinition.GetDeclaredBase(basesBeingResolved).InternalSubstituteTypeParameters(_substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
260
substitutedInterfaces(i) = DirectCast(instanceInterfaces(i).InternalSubstituteTypeParameters(_substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
272
Return DirectCast(fullBase.InternalSubstituteTypeParameters(_substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
288
substitutedInterfaces(i) = DirectCast(instanceInterfaces(i).InternalSubstituteTypeParameters(_substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
576
Return DirectCast(fullBase.InternalSubstituteTypeParameters(_substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
918
Dim newContainer = DirectCast(_container.InternalSubstituteTypeParameters(additionalSubstitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
1060
newContainedType = DirectCast(containedType.InternalSubstituteTypeParameters(additionalSubstitution).
AsTypeSymbolOnly
, NamedTypeSymbol)
1150
Dim newContainer = DirectCast(container.InternalSubstituteTypeParameters(additionalSubstitution).
AsTypeSymbolOnly
, NamedTypeSymbol)
Symbols\TypeSubstitution.vb (2)
877
Dim substituted = DirectCast(modifier.InternalSubstituteTypeParameters(Me).
AsTypeSymbolOnly
(), NamedTypeSymbol)
886
substituted = DirectCast(modifier.InternalSubstituteTypeParameters(Me).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\TypeSubstitutionExtensions.vb (1)
18
Return DirectCast(type.InternalSubstituteTypeParameters(typeMap).
AsTypeSymbolOnly
(), NamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (8)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (8)
311
Assert.Same(missing, missing.InternalSubstituteTypeParameters(wrongSubstitution).
AsTypeSymbolOnly
())
312
Assert.Same(missing.OriginalDefinition, missing.OriginalDefinition.InternalSubstituteTypeParameters(wrongSubstitution).
AsTypeSymbolOnly
())
328
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
334
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
340
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
355
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
361
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)
367
missing2 = DirectCast(missing.InternalSubstituteTypeParameters(substitution).
AsTypeSymbolOnly
(), NamedTypeSymbol)