20 references to VisitType
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Symbols.cs (1)
1136type.VisitType((typePart, argTuple, isNested) =>
FlowAnalysis\NullableWalker.cs (1)
3580return type.VisitType((t, unused1, unused2) => canIgnoreType(t), (object?)null) is object;
Lowering\LocalRewriter\DelegateCacheRewriter.cs (1)
208=> type.VisitType(s_typeParameterSymbolCollector, result, visitCustomModifiers: true);
Symbols\Compilation_WellKnownMembers.cs (1)
1027twa.Type.VisitType(visitor, (transformFlagsBuilder, addCustomModifierFlags));
Symbols\ConstraintsHelper.cs (1)
521type.VisitType(s_checkConstraintsSingleTypeFunc, args);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1907var resultType = type.VisitType(
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1192return (object)typeSymbol.VisitType((currentTypeSymbol, unused1, unused2) => currentTypeSymbol.IsErrorType(), (object)null) != null;
Symbols\SymbolExtensions.cs (1)
234return type.VisitType(s_hasInvalidTypeParameterFunc, containingSymbol) is null;
Symbols\TypeSymbolExtensions.cs (12)
1199var result = type.VisitType(s_containsTypeParameterPredicate, parameter); 1210var result = type.VisitType(s_isTypeParameterWithSpecificContainerPredicate, parameterContainer); 1219var result = type.VisitType(s_containsTypeParametersPredicate, parameters); 1228var result = type.VisitType(s_containsMethodTypeParameterPredicate, null); 1240var result = type.VisitType(s_containsDynamicPredicate, null, canDigThroughNullable: true); 1248var result = type.VisitType((type, unused1, unused2) => type.IsNativeIntegerWrapperType, (object?)null, canDigThroughNullable: true); 1259var result = type.VisitType((type, unused1, unused2) => type.IsErrorType(), (object?)null, canDigThroughNullable: true); 1267type.VisitType((TypeSymbol t, object? _1, bool _2) => t.IsTupleType, null) is object; 1273type.VisitType((TypeSymbol t, object? _1, bool _2) => !t.TupleElementNames.IsDefault, null) is object; 1279type.VisitType((TypeSymbol t, object? _, bool _) => t.IsFunctionPointer(), null) is object; 1282type.VisitType((TypeSymbol t, object? _, bool _) => t.TypeKind is TypeKind.Pointer or TypeKind.FunctionPointer, null) is object; 1481var foundType = type.VisitType(predicate: (type, _, _) => type is NamedTypeSymbol { IsFileLocal: true }, arg: (object?)null);