27 references to IsStructType
Microsoft.CodeAnalysis.CSharp (27)
Binder\Binder_Patterns.cs (1)
951
return type.
IsStructType
() && type.Name == "ValueTuple" && type.GetArity() == 0 &&
Binder\Binder_Statements.cs (1)
3837
if (containingType.
IsStructType
() || containingType.IsEnumType())
Binder\Semantics\Conversions\UserDefinedConversions.cs (1)
116
if (type.IsClassType() || type.
IsStructType
())
Compiler\MethodCompiler.cs (2)
1021
Debug.Assert(!prependedDefaultValueTypeConstructorInitializer || methodSymbol.ContainingType.
IsStructType
());
1035
((methodSymbol.ContainingType.
IsStructType
() && !methodSymbol.IsImplicitConstructor) ||
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
427
bool isStruct = AdaptedNamedTypeSymbol.
IsStructType
();
FlowAnalysis\EmptyStructTypeCache.cs (1)
128
return nts.
IsStructType
() && !nts.SpecialType.CanOptimizeBehavior() && !nts.KnownCircularStruct;
FlowAnalysis\FlowAnalysisPass.cs (1)
115
Debug.Assert(containingType.
IsStructType
());
FlowAnalysis\ReadWriteWalker.cs (1)
216
if (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)
475
Debug.Assert(targetType.
IsStructType
());
Lowering\LocalRewriter\LocalRewriter.cs (1)
925
if (!lhsField.IsStatic && lhsField.ContainingType.
IsStructType
())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
843
return structThisCanChangeValueBetweenReads && ((BoundThisReference)expression).Type.
IsStructType
();
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
353
Conversion receiverConversion = enumeratorType.
IsStructType
() ?
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
242
var initialThis = containingType.
IsStructType
() ?
Symbols\MethodSymbol.cs (1)
369
protected 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)
493
if (this.ContainingType.
IsStructType
())
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4830
if ((!hasParameterlessInstanceConstructor && this.
IsStructType
()) ||
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
739
if (containingType.
IsStructType
())
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
481
return ContainingType.
IsStructType
() &&
501
if (containingType.
IsStructType
())
Symbols\Source\SourcePropertySymbol.cs (1)
426
if (containingType.
IsStructType
())
Symbols\Source\ThisParameterSymbol.cs (1)
180
var scope = _containingType.
IsStructType
() ? ScopedKind.ScopedRef : ScopedKind.None;
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
93
Debug.Assert(!other.Type.
IsStructType
());
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (1)
73
return !container.
IsStructType
() || container.IsReadOnly;
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
92
if (!IsAbstract && !AssociatedEvent.IsWindowsRuntimeEvent && !ContainingType.
IsStructType
() &&