27 references to IsStructType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Patterns.cs (1)
951return type.IsStructType() && type.Name == "ValueTuple" && type.GetArity() == 0 &&
Binder\Binder_Statements.cs (1)
3840if (containingType.IsStructType() || containingType.IsEnumType())
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
116if (type.IsClassType() || type.IsStructType())
Compiler\MethodCompiler.cs (2)
1021Debug.Assert(!prependedDefaultValueTypeConstructorInitializer || methodSymbol.ContainingType.IsStructType()); 1035((methodSymbol.ContainingType.IsStructType() && !methodSymbol.IsImplicitConstructor) ||
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
427bool isStruct = AdaptedNamedTypeSymbol.IsStructType();
FlowAnalysis\EmptyStructTypeCache.cs (1)
128return nts.IsStructType() && !nts.SpecialType.CanOptimizeBehavior() && !nts.KnownCircularStruct;
FlowAnalysis\FlowAnalysisPass.cs (1)
115Debug.Assert(containingType.IsStructType());
FlowAnalysis\ReadWriteWalker.cs (1)
216if (receiver.Type.IsStructType() && receiverSyntax.Span.OverlapsWith(RegionSpan))
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1056(node.Arguments.Length == 0 && !node.Type.IsStructType()) ||
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
475Debug.Assert(targetType.IsStructType());
Lowering\LocalRewriter\LocalRewriter.cs (1)
925if (!lhsField.IsStatic && lhsField.ContainingType.IsStructType())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
843return structThisCanChangeValueBetweenReads && ((BoundThisReference)expression).Type.IsStructType();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
353Conversion receiverConversion = enumeratorType.IsStructType() ?
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
245var initialThis = containingType.IsStructType() ?
Symbols\MethodSymbol.cs (1)
369protected bool IsValidReadOnlyTarget => !IsStatic && ContainingType.IsStructType() && MethodKind != MethodKind.Constructor && !IsInitOnly;
Symbols\MethodSymbolExtensions.cs (1)
220(containingType.IsStructType() == true || (containingType.IsInterface && method.IsImplementable())) &&
Symbols\Source\SourceEventSymbol.cs (1)
493if (this.ContainingType.IsStructType())
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4830if ((!hasParameterlessInstanceConstructor && this.IsStructType()) ||
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
739if (containingType.IsStructType())
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
481return ContainingType.IsStructType() && 501if (containingType.IsStructType())
Symbols\Source\SourcePropertySymbol.cs (1)
426if (containingType.IsStructType())
Symbols\Source\ThisParameterSymbol.cs (1)
180var scope = _containingType.IsStructType() ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
93Debug.Assert(!other.Type.IsStructType());
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
73return !container.IsStructType() || container.IsReadOnly;
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
92if (!IsAbstract && !AssociatedEvent.IsWindowsRuntimeEvent && !ContainingType.IsStructType() &&