93 references to Type
Microsoft.CodeAnalysis.CSharp (93)
Binder\Binder_Expressions.cs (1)
2050type = localSymbol.Type;
Binder\Binder_Statements.cs (3)
3336Debug.Assert(local.Type.IsErrorType() || (TypeSymbol.Equals(local.Type, type, TypeCompareKind.ConsiderEverything2))); 3342exceptionSource = new BoundLocal(declaration, local, ConstantValue.NotAvailable, local.Type);
CodeGen\CodeGenerator.cs (1)
180type: _module.Translate(localSymbol.Type, bodySyntax, _diagnostics.DiagnosticBag),
CodeGen\EmitExpression.cs (2)
1414EmitLoadIndirect(local.LocalSymbol.Type, local.Syntax); 3079EmitIndirectStore(local.LocalSymbol.Type, local.Syntax);
CodeGen\EmitStatement.cs (7)
1758var dynamicTransformFlags = !local.IsCompilerGenerated && local.Type.ContainsDynamic() ? 1759CSharpCompilation.DynamicTransformsEncoder.Encode(local.Type, RefKind.None, 0) : 1761var tupleElementNames = !local.IsCompilerGenerated && local.Type.ContainsTupleNames() ? 1762CSharpCompilation.TupleNamesEncoder.Encode(local.Type) : 1768MetadataConstant compileTimeValue = _module.CreateConstant(local.Type, local.ConstantValue, syntaxNode, _diagnostics.DiagnosticBag); 1793PointerTypeSymbol pointerType = (PointerTypeSymbol)local.Type; 1806translatedType = _module.Translate(local.Type, syntaxNode, _diagnostics.DiagnosticBag);
Compilation\CSharpSemanticModel.cs (1)
2067type = local.LocalSymbol.Type;
Compiler\MethodBodySynthesizer.Lowered.cs (8)
95F.Binary(BinaryOperatorKind.Multiplication, hashCode.Type, 96F.Binary(BinaryOperatorKind.Xor, hashCode.Type, 97F.Convert(hashCode.Type, 107F.Binary(BinaryOperatorKind.Addition, i.Type, 182F.Binary(BinaryOperatorKind.Multiplication, hashCode.Type, 183F.Binary(BinaryOperatorKind.Xor, hashCode.Type, 184F.Convert(hashCode.Type, 196F.Binary(BinaryOperatorKind.Addition, i.Type,
FlowAnalysis\DefiniteAssignment.cs (1)
863if ((object)local != null && read && WriteConsideredUse(local.Type, value))
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (11)
225statements.Add(_F.Assignment(_F.Local(pendingExceptionLocal), _F.Default(pendingExceptionLocal.Type))); 227statements.Add(_F.Assignment(_F.Local(pendingBranchVar), _F.Default(pendingBranchVar.Type))); 419_F.Null(obj.Type)), 438_F.As(_F.Local(obj), ex.Type)); 444_F.If(_F.ObjectEqual(_F.Local(ex), _F.Null(ex.Type)), rethrow), 506_F.Default(currentAwaitCatchFrame.pendingCatch.Type)), 559_F.Convert(currentAwaitCatchFrame.pendingCaughtException.Type, 690return node.Update(hoistedLocal, node.ConstantValueOpt, hoistedLocal.Type); 1055if (!_hoistedLocals.Keys.Any(l => l.Name == local.Name && TypeSymbol.Equals(l.Type, local.Type, TypeCompareKind.ConsiderEverything2))) 1068var newLocal = F.SynthesizedLocal(local.Type, pendingCatch.SyntaxOpt, kind: SynthesizedLocalKind.ExceptionFilterAwaitHoistedExceptionLocal);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (16)
250exceptionLocal.Type, 442if (awaiterTemp.Type.IsDynamic()) 463TypeSymbol awaiterFieldType = awaiterTemp.Type.IsVerifierReference() 465: awaiterTemp.Type; 483(TypeSymbol.Equals(awaiterField.Type, awaiterTemp.Type, TypeCompareKind.ConsiderEverything2)) 487blockBuilder.Add(awaiterTemp.Type.IsDynamic() 489: GenerateAwaitOnCompleted(awaiterTemp.Type, awaiterTemp)); 515TypeSymbol.Equals(awaiterTemp.Type, awaiterField.Type, TypeCompareKind.ConsiderEverything2) 517: F.Convert(awaiterTemp.Type, F.Field(F.This(), awaiterField)))); 562F.As(F.Local(awaiterTemp), criticalNotifyCompletedTemp.Type))); 571condition: F.ObjectEqual(F.Local(criticalNotifyCompletedTemp), F.Null(criticalNotifyCompletedTemp.Type)), 578F.Convert(notifyCompletionTemp.Type, F.Local(awaiterTemp), Conversion.ExplicitReference)), 583notifyCompletionTemp.Type, 588F.NullOrDefault(notifyCompletionTemp.Type))), 595criticalNotifyCompletedTemp.Type, 602F.NullOrDefault(criticalNotifyCompletedTemp.Type)));
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
686type = ((LocalSymbol)capturedVariable).Type;
Lowering\ClosureConversion\ClosureConversion.cs (4)
632return new BoundLocal(syntax, localFrame, null, localFrame.Type); 717if (!framePointer.Type.IsValueType) 776value = new BoundLocal(syntax, localToUse, null, localToUse.Type); 785static (frameType1, arg) => new BoundLocal(arg.syntax, arg.framePointer, null, arg.framePointer.Type),
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
103var lambdaFrame = local.Type.OriginalDefinition as SynthesizedClosureEnvironment;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
414type = localSymbol.Type;
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (1)
347rhsTemp.Type);
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (6)
39cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.Null(pinnedTemp.Type)); 239TypeSymbol localType = localSymbol.Type; 306TypeSymbol localType = localSymbol.Type; 441TypeSymbol localType = localSymbol.Type; 510TypeSymbol localType = localSymbol.Type; 516ArrayTypeSymbol arrayType = (ArrayTypeSymbol)pinnedTemp.Type;
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.cs (2)
36if (!localSymbol.Type.IsReferenceType && localSymbol.ConstantValue == null) 63localSymbol.Type
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
218TypeSymbol localType = localSymbol.Type;
Lowering\MethodToClassRewriter.cs (3)
105var newType = VisitType(local.Type); 106if (TypeSymbol.Equals(newType, local.Type, TypeCompareKind.ConsiderEverything2)) 449return new BoundLocal(node.Syntax, replacementLocal, node.ConstantValueOpt, replacementLocal.Type, node.HasErrors);
Lowering\SpillSequenceSpiller.cs (5)
562&& receiverRefLocal.Type.IsTypeParameter() 563&& !receiverRefLocal.Type.IsReferenceType 564&& !receiverRefLocal.Type.IsValueType 565&& valueTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions) 566&& referenceTypeReceiver.Type.Equals(receiverRefLocal.Type, TypeCompareKind.AllIgnoreOptions)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (4)
146!local.Type.IsRestrictedType(), 211var type = (variable.Kind == SymbolKind.Local) ? ((LocalSymbol)variable).Type : ((ParameterSymbol)variable).Type; 227refLocal.Type.HasInlineArrayAttribute(out _) && 228refLocal.Type.TryGetInlineArrayElementField() is not null);
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (8)
311(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object)); 319proxy = new CapturedToStateMachineFieldReplacement(GetOrAllocateReusableHoistedField(TypeMap.SubstituteType(local.Type).Type, out reused, local), isReusable: true); 494(local.SynthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object)); 540var type = TypeMap.SubstituteType(local.Type).Type; 836(leftLocal.SynthesizedKind == SynthesizedLocalKind.ForEachArray && leftLocal.Type.HasInlineArrayAttribute(out _) && leftLocal.Type.TryGetInlineArrayElementField() is object));
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
173(synthesizedKind == SynthesizedLocalKind.ForEachArray && local.Type.HasInlineArrayAttribute(out _) && local.Type.TryGetInlineArrayElementField() is object)); 183var fieldType = typeMap.SubstituteType(local.Type).Type;
Lowering\SyntheticBoundNodeFactory.cs (1)
982return new BoundLocal(Syntax, local, null, local.Type) { WasCompilerGenerated = true };
Symbols\Source\SourceLocalSymbol.cs (1)
582var type = this.Type;