Binder\Binder_Patterns.cs (6)
936bool isExplicitNotNullTest = boundType.Type.SpecialType == SpecialType.System_Object;
937return new BoundTypePattern(node, boundType, isExplicitNotNullTest, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, boundType.Type, hasErrors);
1454return new BoundDeclarationPattern(node, boundDeclType, isVar: false, variableSymbol, variableAccess, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, narrowedType: boundDeclType.Type, hasErrors);
1664narrowedType: boundDeclType?.Type ?? inputType.StrippedType(), hasErrors);
2317bool isExplicitNotNullTest = patternType.Type.SpecialType == SpecialType.System_Object;
2318return new BoundTypePattern(node, patternType, isExplicitNotNullTest, isUnionMatching: hasUnionMatching, inputType: unionMatchingInputType ?? inputType, patternType.Type, hasErrors);
Generated\BoundNodes.xml.Generated.cs (4)
1108if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(aliasOpt, this.AliasOpt) || boundContainingTypeOpt != this.BoundContainingTypeOpt || boundDimensionsOpt != this.BoundDimensionsOpt || typeWithAnnotations != this.TypeWithAnnotations || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11239TypeSymbol? type = this.VisitType(node.Type);
12981updatedNode = node.Update(node.AliasOpt, boundContainingTypeOpt, boundDimensionsOpt, node.TypeWithAnnotations, node.Type);
15653new TreeDumperNode("type", node.Type, null),