1 write to F
Microsoft.CodeAnalysis.VisualBasic (1)
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
63Me.F = New SyntheticBoundNodeFactory(method, method, method.ContainingType, body.Syntax, compilationState, diagnostics)
206 references to F
Microsoft.CodeAnalysis.VisualBasic (206)
Lowering\AsyncRewriter\AsyncRewriter.vb (64)
53Me._resultType = Me.F.SpecialType(SpecialType.System_Void) 54Me._builderType = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_AsyncVoidMethodBuilder) 57Me._resultType = Me.F.SpecialType(SpecialType.System_Void) 58Me._builderType = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_AsyncTaskMethodBuilder) 62Me._builderType = Me.F.WellKnownType(WellKnownType.System_Runtime_CompilerServices_AsyncTaskMethodBuilder_T).Construct(Me._resultType) 136Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public) 137Me._builderField = Me.F.StateMachineField(Me._builderType, Me.Method, GeneratedNames.MakeStateMachineBuilderFieldName(), Accessibility.Public) 144Me.F.Assignment( 145Me.F.Local(stateMachineLocal, True), 146Me.F.[New](StateMachineType.Constructor.AsMember(frameType)))) 150Me.F.Assignment( 151Me.F.Local(stateMachineLocal, True), 152Me.F.Null(stateMachineLocal.Type))) 185If Me.F.CurrentType.TypeKind = TypeKind.Class Then 186Me.F.CloseMethod(F.Return()) 189Me.F.Block( 190Me.F.ExpressionStatement( 192Me.F.Field(Me.F.Me(), Me._builderField, False), 195{Me.F.Parameter(Me.F.CurrentMethod.Parameters(0))})), 196Me.F.Return())) 201Me.F.CurrentMethod = StateMachineType.Constructor 202Me.F.CloseMethod(F.Block(ImmutableArray.Create(F.BaseInitialization(), F.Return()))) 212Me.F.Field( 213Me.F.Local(stateMachineVariable, True), 217Me.F.Assignment( 219Me.F.Literal(StateMachineState.NotStartedOrRunningState))) 223Dim builderFieldAsLValue As BoundExpression = Me.F.Field(Me.F.Local(stateMachineVariable, True), constructedBuilderField, True) 229Me.F.Assignment( 235Me.F.ExpressionStatement( 241Me.F.Local(stateMachineVariable, True)))) 248Me.F.Return(), 249Me.F.Return(Me.GeneratePropertyGet(builderFieldAsLValue, builderType, "Task")))) 251Return RewriteBodyIfNeeded(Me.F.Block(ImmutableArray(Of LocalSymbol).Empty, bodyBuilder.ToImmutableAndFree()), Me.F.TopLevelMethod, Me.Method) 257F:=F, 280body = Me.F.Block(body) 290F.CompilationState, 463Me.F.StateMachineField( 483DirectCast(Me.F.[Me](), BoundExpression), 484Me.F.Parameter(parameter).MakeRValue()) 486Me.F.AssignmentExpression( 487Me.F.Field( 488Me.F.Local(stateMachineVariable, True), 524Return Me.F.BadExpression(arguments) 528Dim result = _binder.BindInvocationExpression(Me.F.Syntax, 529Me.F.Syntax, 549Me.Diagnostics.Add(Me.F.Syntax, useSiteInfo) 555group = New BoundMethodGroup(Me.F.Syntax, 556Me.F.TypeArguments(typeArgs), 568Me.F.Syntax.GetLocation()) 580Return Me.F.BadExpression() 584Dim result = _binder.BindInvocationExpression(Me.F.Syntax, 585Me.F.Syntax, 608Me.Diagnostics.Add(Me.F.Syntax, useSiteInfo) 614group = New BoundPropertyGroup(Me.F.Syntax, 626Me.F.Syntax.GetLocation())
Lowering\IteratorRewriter\IteratorRewriter.vb (95)
139Me.StateField = Me.F.StateMachineField(Me.F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeStateMachineStateFieldName(), Accessibility.Public) 142_currentField = F.StateMachineField(_elementType, Me.Method, GeneratedNames.MakeIteratorCurrentFieldName(), Accessibility.Public) 146F.StateMachineField(F.SpecialType(SpecialType.System_Int32), Me.Method, GeneratedNames.MakeIteratorInitialThreadIdName(), Accessibility.Public), 164F.CurrentMethod = moveNextMethod 181Dim getEnumeratorGeneric = Me.OpenMethodImplementation(F.SpecialType(SpecialType.System_Collections_Generic_IEnumerable_T).Construct(_elementType), 188Dim resultVariable = F.SynthesizedLocal(StateMachineType) ' iteratorClass result; 192Dim currentManagedThreadIdProperty As PropertySymbol = F.WellKnownMember(Of PropertySymbol)(WellKnownMember.System_Environment__CurrentManagedThreadId, isOptional:=True) 199managedThreadId = F.Call(Nothing, currentManagedThreadIdMethod) 201managedThreadId = F.Property(F.Property(WellKnownMember.System_Threading_Thread__CurrentThread), WellKnownMember.System_Threading_Thread__ManagedThreadId) 213Dim thisInitialized = F.GenerateLabel("thisInitialized") 215F.If( 217F.LogicalAndAlso( 218F.IntEqual(F.Field(F.Me, StateField, False), F.Literal(StateMachineState.FinishedState)), 219F.IntEqual(F.Field(F.Me, _initialThreadIdField, False), managedThreadId)), 221F.Block( 222F.Assignment(F.Field(F.Me, StateField, True), F.Literal(StateMachineState.FirstUnusedState)), 223F.Assignment(F.Local(resultVariable, True), F.Me), 225F.Goto(thisInitialized), 226DirectCast(F.StatementList(), BoundStatement)) 229F.Assignment(F.Local(resultVariable, True), F.[New](StateMachineType.Constructor, F.Literal(0))) 240F.Assignment( 241F.Field(F.Local(resultVariable, True), proxy.AsMember(StateMachineType), True), 242F.Field(F.Me, copySrc(Method.MeParameter).AsMember(F.CurrentType), False))) 246bodyBuilder.Add(F.Label(thisInitialized)) 252F.Assignment( 253F.Field(F.Local(resultVariable, True), proxy.AsMember(StateMachineType), True), 254F.Field(F.Me, copySrc(parameter).AsMember(F.CurrentType), False))) 258bodyBuilder.Add(F.Return(F.Local(resultVariable, False))) 259F.CloseMethod(F.Block(ImmutableArray.Create(resultVariable), bodyBuilder.ToImmutableAndFree())) 271F.CloseMethod(F.Return(F.Call(F.Me, getEnumeratorGeneric))) 275Me.OpenPropertyImplementation(F.SpecialType(SpecialType.System_Collections_Generic_IEnumerator_T).Construct(_elementType), 279F.CloseMethod(F.Return(F.Field(F.Me, _currentField, False))) 286F.CloseMethod(F.Throw(F.[New](F.WellKnownType(WellKnownType.System_NotSupportedException)))) 298F.CloseMethod(F.Return(F.Field(F.Me, _currentField, False))) 302F.CurrentMethod = StateMachineType.Constructor 304bodyBuilder.Add(F.BaseInitialization()) 305bodyBuilder.Add(F.Assignment(F.Field(F.Me, StateField, True), F.Parameter(F.CurrentMethod.Parameters(0)).MakeRValue)) ' this.state = state 309bodyBuilder.Add(F.Assignment(F.Field(F.Me, _initialThreadIdField, True), managedThreadId)) 312bodyBuilder.Add(F.Return()) 313F.CloseMethod(F.Block(bodyBuilder.ToImmutableAndFree())) 320Return F.Return(F.Local(stateMachineVariable, False)) 328F.Assignment( 329F.Local(stateMachineLocal, True), 330F.[New](StateMachineType.Constructor.AsMember(frameType), F.Literal(initialState)))) 347F:=F, 375DirectCast(Me.F.Me, BoundExpression), 376Me.F.Parameter(parameter).MakeRValue()) 378Me.F.AssignmentExpression( 379Me.F.Field( 380Me.F.Local(stateMachineVariable, True),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (47)
99Me.F.OpenNestedType(Me.StateMachineType) 100Me.F.CompilationState.StateMachineImplementationClass(Me.Method) = Me.StateMachineType 110Dim variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(New FlowAnalysisInfo(F.CompilationState.Compilation, Me.Method, Me.Body), Me.Diagnostics.DiagnosticBag) 123Me.F.CurrentMethod = Me.Method 128Dim stateMachineVariable As LocalSymbol = F.SynthesizedLocal(frameType) 152bodyBuilder.Add(F.ExpressionStatement(F.Sequence(initializers.ToArray()))) 158Return Me.F.Block( 167Dim isDebugBuild As Boolean = F.Compilation.Options.OptimizationLevel = OptimizationLevel.Debug 213Me.F.StateMachineField( 226Me.F.StateMachineField( 242F.StateMachineField( 253Me.F.StateMachineField( 293If Not local.SynthesizedKind.IsSlotReusable(F.Compilation.Options.OptimizationLevel) Then 306F.CompilationState.ModuleBuilderOpt.Translate(fieldType, declaratorSyntax, Diagnostics.DiagnosticBag), 354Return F.StateMachineField(localType, Me.Method, proxyName, New LocalSlotDebugInfo(local.SynthesizedKind, id), slotIndex, Accessibility.Friend) 379Return Binder.GetSpecialType(F.Compilation, type, Me.Body.Syntax, bag) 383Return Binder.GetWellKnownType(F.Compilation, type, Me.Body.Syntax, bag) 387Return Binder.GetSpecialTypeMember(F.Compilation.Assembly, member, Me.Body.Syntax, bag) 391Return Binder.GetWellKnownTypeMember(F.Compilation, member, Me.Body.Syntax, bag) 414Dim methodToImplement As MethodSymbol = Me.F.WellKnownMember(Of MethodSymbol)(interfaceMethod) 420Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceMethod), MethodSymbol) 426Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceMethod), MethodSymbol).AsMember(interfaceType) 440Dim result As New SynthesizedStateMachineDebuggerNonUserCodeMethod(DirectCast(Me.F.CurrentType, StateMachineTypeSymbol), 443Me.F.Syntax, 448Me.F.AddMethod(Me.F.CurrentType, result) 449Me.F.CurrentMethod = result 454Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceProperty), PropertySymbol).GetMethod 460Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceMethod), PropertySymbol).GetMethod.AsMember(interfaceType) 467Dim prop As New SynthesizedStateMachineProperty(DirectCast(Me.F.CurrentType, StateMachineTypeSymbol), 470Me.F.Syntax, 473Me.F.AddProperty(Me.F.CurrentType, prop) 476Me.F.AddMethod(Me.F.CurrentType, getter) 478Me.F.CurrentMethod = getter 483Me.F.CloseMethod(RewriteBodyIfNeeded(body, Me.F.TopLevelMethod, Me.F.CurrentMethod)) 491Dim methodToImplement As MethodSymbol = Me.F.WellKnownMember(Of MethodSymbol)(interfaceMethod) 497Dim methodToImplement As MethodSymbol = DirectCast(Me.F.SpecialMember(interfaceMethod), MethodSymbol) 507Dim result As New SynthesizedStateMachineMoveNextMethod(DirectCast(Me.F.CurrentType, StateMachineTypeSymbol), 509Me.F.Syntax, 512Me.F.AddMethod(Me.F.CurrentType, result) 513Me.F.CurrentMethod = result