26 references to VisitType
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Symbols.cs (1)
1148
type.
VisitType
((typePart, argTuple, isNested) =>
FlowAnalysis\NullableWalker.cs (1)
3824
return type.
VisitType
((t, unused1, unused2) => canIgnoreType(t), (object?)null) is object;
Symbols\Compilation_WellKnownMembers.cs (5)
898
type.
VisitType
((t, builder, _ignore) => AddNames(t, builder), namesBuilder);
971
type.
VisitType
((typeSymbol, builder, isNested) => AddFlags(typeSymbol, builder, isNested, addCustomModifierFlags: true), transformFlagsBuilder);
975
type.
VisitType
((typeSymbol, builder, isNested) => AddFlags(typeSymbol, builder, isNested, addCustomModifierFlags: false), transformFlagsBuilder);
1069
twa.Type.
VisitType
(visitor, (transformFlagsBuilder, addCustomModifierFlags));
1086
type.
VisitType
((typeSymbol, builder, isNested) => AddFlags(typeSymbol, builder), builder);
Symbols\ConstraintsHelper.cs (1)
521
type.
VisitType
(s_checkConstraintsSingleTypeFunc, args);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2111
var resultType = type.
VisitType
(
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (1)
1228
return (object)typeSymbol.
VisitType
((currentTypeSymbol, unused1, unused2) => currentTypeSymbol.IsErrorType(), (object)null) != null;
Symbols\SymbolExtensions.cs (1)
222
return type.
VisitType
(s_hasInvalidTypeParameterFunc, containingSymbol) is null;
Symbols\TypeSymbolExtensions.cs (15)
728
var result = type.
VisitType
(static (type1, arg, unused) => IsTypeLessVisibleThan(type1, arg.Symbol!, ref arg.UseSiteInfo),
1246
var result = type.
VisitType
(s_containsTypeParameterPredicate, parameter);
1257
var result = type.
VisitType
(s_isTypeParameterWithSpecificContainerPredicate, typeParameterContainer);
1266
var result = type.
VisitType
(s_containsTypeParametersPredicate, parameters);
1275
var result = type.
VisitType
(
1281
=> type.
VisitType
(s_typeParameterSymbolCollector, result, visitCustomModifiers: true);
1313
var result = type.
VisitType
(s_containsMethodTypeParameterPredicate, null);
1325
var result = type.
VisitType
(s_containsDynamicPredicate, null, canDigThroughNullable: true);
1333
var result = type.
VisitType
((type, unused1, unused2) => type.IsNativeIntegerWrapperType, (object?)null, canDigThroughNullable: true);
1344
var result = type.
VisitType
((type, unused1, unused2) => type.IsErrorType(), (object?)null, canDigThroughNullable: true);
1352
type.
VisitType
((TypeSymbol t, object? _1, bool _2) => t.IsTupleType, null) is object;
1358
type.
VisitType
((TypeSymbol t, object? _1, bool _2) => !t.TupleElementNames.IsDefault, null) is object;
1364
type.
VisitType
((TypeSymbol t, object? _, bool _) => t.IsFunctionPointer(), null) is object;
1367
type.
VisitType
((TypeSymbol t, object? _, bool _) => t.TypeKind is TypeKind.Pointer or TypeKind.FunctionPointer, null) is object;
1566
var foundType = type.
VisitType
(predicate: (type, _, _) => type is NamedTypeSymbol { IsFileLocal: true }, arg: (object?)null);