1 write to _semanticModel
Microsoft.CodeAnalysis.VisualBasic (1)
Operations\VisualBasicOperationFactory.vb (1)
21
_semanticModel
= semanticModel
129 references to _semanticModel
Microsoft.CodeAnalysis.VisualBasic (129)
Operations\VisualBasicOperationFactory.vb (115)
322
Return New NoneOperation(children,
_semanticModel
, boundNode.Syntax, type, constantValue, isImplicit)
366
Return New NoneOperation(children,
_semanticModel
, boundAssignmentOperator.Syntax, type:=Nothing, constantValue, isImplicit)
377
Return New SimpleAssignmentOperation(isRef, target, value,
_semanticModel
, syntax, type, constantValue, isImplicit)
386
Return New InstanceReferenceOperation(referenceKind,
_semanticModel
, syntax, type, isImplicit)
394
Return New InstanceReferenceOperation(referenceKind,
_semanticModel
, syntax, type, isImplicit)
402
Return New InstanceReferenceOperation(referenceKind,
_semanticModel
, syntax, type, isImplicit)
410
Return New LiteralOperation(
_semanticModel
, syntax, type, constantValue, isImplicit)
418
Return New AwaitOperation(awaitedValue,
_semanticModel
, syntax, type, isImplicit)
427
Return New NameOfOperation(argument,
_semanticModel
, syntax, type, constantValue, isImplicit)
435
Return New AnonymousFunctionOperation(symbol, body,
_semanticModel
, syntax, isImplicit)
454
Return New InvocationOperation(targetMethod, constrainedToType:=Nothing, receiver, isVirtual, arguments,
_semanticModel
, syntax, type, isImplicit)
461
Return New OmittedArgumentOperation(
_semanticModel
, syntax, type, isImplicit)
470
Return New ParenthesizedOperation(operand,
_semanticModel
, syntax, type, constantValue, isImplicit)
479
Return New ArrayElementReferenceOperation(arrayReference, indices,
_semanticModel
, syntax, type, isImplicit)
508
Return New UnaryOperation(operatorKind, operand, isLifted, isChecked, operatorMethod, constrainedToType:=Nothing,
_semanticModel
, syntax, type, constantValue, isImplicit)
521
Return New UnaryOperation(operatorKind, operand, isLifted, isChecked, operatorMethod, constrainedToType:=Nothing,
_semanticModel
, syntax, type, constantValue, isImplicit)
575
unaryOperatorMethod:=Nothing,
_semanticModel
, syntax, type, constantValue, isImplicit)
593
unaryOperatorMethod:=Nothing,
_semanticModel
, syntax, type, constantValue, isImplicit)
618
Return New CoalesceOperation(value, whenFalse, valueConversion,
_semanticModel
, syntax, type, constantValue, isImplicit)
645
binaryOperatorInfo.OperatorMethod, constrainedToType:=Nothing, unaryOperatorMethod,
_semanticModel
, syntax, type, constantValue, isImplicit)
657
Return New InvalidOperation(children,
_semanticModel
, syntax, type, constantValue, isImplicit)
673
Return New InvalidOperation(children,
_semanticModel
, syntax, type, constantValue, isImplicit)
679
Dim invalidOperation = OperationFactory.CreateInvalidOperation(
_semanticModel
, boundAttribute.Syntax, GetIOperationChildren(boundAttribute), isImplicit:=True)
680
Return New AttributeOperation(invalidOperation,
_semanticModel
, boundAttribute.Syntax, isAttributeImplicit)
686
initializer = New ObjectOrCollectionInitializerOperation(namedArguments,
_semanticModel
, boundAttribute.Syntax, boundAttribute.Type, isImplicit:=True)
689
Dim objectCreationOperation = New ObjectCreationOperation(boundAttribute.Constructor, initializer, DeriveArguments(boundAttribute),
_semanticModel
, boundAttribute.Syntax, boundAttribute.Type, boundAttribute.ConstantValueOpt, isImplicit:=True)
690
Return New AttributeOperation(objectCreationOperation,
_semanticModel
, boundAttribute.Syntax, isAttributeImplicit)
742
Return New DelegateCreationOperation(conversionInfo.Operation,
_semanticModel
, syntax, type, isImplicit)
744
Return New ConversionOperation(conversionInfo.Operation, conversion, isTryCast, isChecked,
_semanticModel
, syntax, type, constantValue, isImplicit)
756
Return New DelegateCreationOperation(target,
_semanticModel
, syntax, type, isImplicit)
774
Return New MethodReferenceOperation(method, constrainedToType:=Nothing, isVirtual, receiverOpt,
_semanticModel
, syntax, type, isImplicit)
786
Return New ConditionalOperation(condition, whenTrue, whenFalse, isRef,
_semanticModel
, syntax, type, constantValue, isImplicit)
796
Return New IsTypeOperation(valueOperand, typeOperand, isNegated,
_semanticModel
, syntax, type, isImplicit)
804
Return New TypeOfOperation(typeOperand,
_semanticModel
, syntax, type, isImplicit)
815
Return New DynamicInvocationOperation(operation, arguments, argumentNames, argumentRefKinds,
_semanticModel
, syntax, type, isImplicit)
828
Return New ObjectCreationOperation(constructor, initializer, arguments,
_semanticModel
, syntax, type, constantValue, isImplicit)
836
Return New ObjectOrCollectionInitializerOperation(initializers,
_semanticModel
, syntax, type, isImplicit)
844
Return New ObjectOrCollectionInitializerOperation(initializers,
_semanticModel
, syntax, type, isImplicit)
852
Return New TypeParameterObjectCreationOperation(initializer,
_semanticModel
, syntax, type, isImplicit)
860
Return New NoPiaObjectCreationOperation(initializer,
_semanticModel
, syntax, type, isImplicit)
869
Return New ArrayCreationOperation(dimensionSizes, initializer,
_semanticModel
, syntax, type, isImplicit)
876
Return New ArrayInitializerOperation(elementValues,
_semanticModel
, syntax, isImplicit)
889
Return New PropertyReferenceOperation([property], constrainedToType:=Nothing, arguments, instance,
_semanticModel
, syntax, type, isImplicit)
897
Return New InstanceReferenceOperation(referenceKind,
_semanticModel
, syntax, type, isImplicit)
905
Return New InstanceReferenceOperation(referenceKind,
_semanticModel
, syntax, type, isImplicit)
915
Return New EventReferenceOperation([event], constrainedToType:=Nothing, instance,
_semanticModel
, syntax, type, isImplicit)
927
Return New FieldReferenceOperation(field, isDeclaration, instance,
_semanticModel
, syntax, type, constantValue, isImplicit)
937
Return New ConditionalAccessOperation(operation, whenNotNull,
_semanticModel
, syntax, type, isImplicit)
944
Return New ConditionalAccessInstanceOperation(
_semanticModel
, syntax, type, isImplicit)
952
Return New ParameterReferenceOperation(parameter,
_semanticModel
, syntax, type, isImplicit)
962
Return New LocalReferenceOperation(local, isDeclaration,
_semanticModel
, syntax, type, constantValue, isImplicit)
987
Return New DynamicMemberReferenceOperation(instance, memberName, typeArguments, containingType,
_semanticModel
, syntax, type, isImplicit)
995
Return New FieldInitializerOperation(initializedFields, ImmutableArray(Of ILocalSymbol).Empty, value,
_semanticModel
, syntax, isImplicit)
1003
Return New PropertyInitializerOperation(initializedProperties, ImmutableArray(Of ILocalSymbol).Empty, value,
_semanticModel
, syntax, isImplicit)
1011
Return New ParameterInitializerOperation(parameter, ImmutableArray(Of ILocalSymbol).Empty, value,
_semanticModel
, syntax, isImplicit)
1037
Return New ConditionalAccessInstanceOperation(
_semanticModel
, syntax, type, isImplicit)
1057
Return New PlaceholderOperation(placeholderKind,
_semanticModel
, syntax, type, isImplicit)
1069
Return New ConditionalOperation(condition, whenTrue, whenFalse, isRef,
_semanticModel
, syntax, type, constantValue, isImplicit)
1079
Return New SwitchOperation(ImmutableArray(Of ILocalSymbol).Empty, value, cases, exitLabel,
_semanticModel
, syntax, isImplicit)
1090
_semanticModel
,
1113
Return New SwitchCaseOperation(clauses, body, ImmutableArray(Of ILocalSymbol).Empty, condition,
_semanticModel
, syntax, isImplicit)
1120
Return New SingleValueCaseClauseOperation(clauseValue, label:=Nothing,
_semanticModel
, syntax, isImplicit)
1129
Return New RangeCaseClauseOperation(minimumValue, maximumValue, label:=Nothing,
_semanticModel
, syntax, isImplicit)
1137
Return New RelationalCaseClauseOperation(valueExpression, relation, label:=Nothing,
_semanticModel
, syntax, isImplicit)
1152
Return New WhileLoopOperation(condition, conditionIsTop, conditionIsUntil, ignoredCondition, body, locals, continueLabel, exitLabel,
_semanticModel
, syntax, isImplicit)
1172
New SynthesizedLocal(DirectCast(
_semanticModel
.GetEnclosingSymbol(boundForToStatement.Syntax.SpanStart), Symbol), boundForToStatement.ControlVariable.Type,
1188
body, locals, continueLabel, exitLabel,
_semanticModel
, syntax, isImplicit)
1199
DirectCast(
_semanticModel
.Compilation, VisualBasicCompilation),
1252
Return New ForEachLoopOperation(controlVariable, collection, nextVariables, info, isAsynchronous:=False, body, locals, continueLabel, exitLabel,
_semanticModel
, syntax, isImplicit)
1259
New VariableDeclaratorOperation(localOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=
_semanticModel
, syntax:=controlVariable.Syntax, isImplicit:=boundForStatement.WasCompilerGenerated),
1270
Return New TryOperation(body, catches, [finally], exitLabel,
_semanticModel
, syntax, isImplicit)
1277
Return New VariableDeclaratorOperation(boundCatchBlock.LocalOpt, initializer:=Nothing, ignoredArguments:=ImmutableArray(Of IOperation).Empty, semanticModel:=
_semanticModel
, syntax:=boundCatchBlock.ExceptionSourceOpt.Syntax, isImplicit:=False)
1287
Dim exceptionType As ITypeSymbol = If(boundCatchBlock.ExceptionSourceOpt?.Type, DirectCast(
_semanticModel
.Compilation, VisualBasicCompilation).GetWellKnownType(WellKnownType.System_Exception))
1293
Return New CatchClauseOperation(exceptionDeclarationOrExpression, exceptionType, locals, filter, handler,
_semanticModel
, syntax, isImplicit)
1301
Return New BlockOperation(operations, locals,
_semanticModel
, syntax, isImplicit)
1320
Return New InvalidOperation(children,
_semanticModel
, syntax, type:=Nothing, constantValue:=Nothing, isImplicit)
1327
Return New ReturnOperation(returnedValue, OperationKind.Return,
_semanticModel
, syntax, isImplicit)
1340
Return New ThrowOperation(thrownObject,
_semanticModel
, syntax, expressionType, isImplicit)
1354
Return New WhileLoopOperation(condition, conditionIsTop, conditionIsUntil, ignoredCondition, body, locals, continueLabel, exitLabel,
_semanticModel
, syntax, isImplicit)
1361
Return New VariableDeclarationGroupOperation(declarations,
_semanticModel
, syntax, isImplicit)
1370
Return New VariableDeclarationGroupOperation(declarations,
_semanticModel
, syntax, isImplicit)
1377
Return New ReturnOperation(returnedValue, OperationKind.YieldReturn,
_semanticModel
, syntax, isImplicit)
1385
Return New LabeledOperation(label, statement,
_semanticModel
, syntax, isImplicit)
1393
Return New BranchOperation(target, branchKind,
_semanticModel
, syntax, isImplicit)
1401
Return New BranchOperation(target, branchKind,
_semanticModel
, syntax, isImplicit)
1409
Return New BranchOperation(target, branchKind,
_semanticModel
, syntax, isImplicit)
1413
Dim legacyMode =
_semanticModel
.Compilation.CommonGetWellKnownTypeMember(WellKnownMember.System_Threading_Monitor__Enter2) Is Nothing
1416
New SynthesizedLocal(DirectCast(
_semanticModel
.GetEnclosingSymbol(boundSyncLockStatement.Syntax.SpanStart), Symbol),
1417
DirectCast(
_semanticModel
.Compilation.GetSpecialType(SpecialType.System_Boolean), TypeSymbol),
1424
Return New LockOperation(lockedValue, body, lockTakenSymbol,
_semanticModel
, syntax, isImplicit)
1432
Return New EmptyOperation(
_semanticModel
, syntax, isImplicit)
1438
Return New StopOperation(
_semanticModel
, syntax, isImplicit)
1444
Return New EndOperation(
_semanticModel
, syntax, isImplicit)
1452
Return New WithStatementOperation(body, value,
_semanticModel
, syntax, isImplicit)
1469
Return New UsingOperation(resources, body, locals, isAsynchronous:=False, disposeInfo:=Nothing,
_semanticModel
, syntax, isImplicit)
1476
Return New ExpressionStatementOperation(expression,
_semanticModel
, syntax, isImplicit)
1502
_semanticModel
,
1519
Return New InvalidOperation(children,
_semanticModel
, syntax, type:=Nothing, constantValue:=Nothing, isImplicit)
1525
Return New RaiseEventOperation(eventReference, arguments,
_semanticModel
, syntax, isImplicit)
1532
Return New ExpressionStatementOperation(expression,
_semanticModel
, syntax, isImplicit)
1541
Return New ExpressionStatementOperation(expression,
_semanticModel
, syntax, isImplicit)
1557
Return New TupleOperation(elements, naturalType,
_semanticModel
, syntax, type, isImplicit)
1566
Return New InterpolatedStringOperation(parts,
_semanticModel
, syntax, type, constantValue, isImplicit)
1587
Return New InterpolationOperation(expression, alignment, formatString,
_semanticModel
, syntax, isImplicit)
1594
Return New InterpolatedStringTextOperation(text,
_semanticModel
, syntax, isImplicit)
1602
Return New AnonymousObjectCreationOperation(initializers,
_semanticModel
, syntax, type, isImplicit)
1616
Return New PropertyReferenceOperation([property], constrainedToType:=Nothing, arguments, instance,
_semanticModel
, syntax, type, isImplicit)
1624
_semanticModel
,
1635
Return New TranslatedQueryOperation(operation,
_semanticModel
, syntax, type, isImplicit)
1652
Return New AggregateQueryOperation(group, aggregation,
_semanticModel
, syntax, type, isImplicit)
1663
Dim method = DirectCast(DirectCast(
_semanticModel
.Compilation, VisualBasicCompilation).
1672
_semanticModel
,
1678
Return New InvalidOperation(children,
_semanticModel
, syntax, type, constantValue, isImplicit)
1692
Return New ReDimOperation(clauses, preserve,
_semanticModel
, syntax, isImplicit)
1700
Return New ReDimClauseOperation(operand, dimensionSizes,
_semanticModel
, syntax, isImplicit)
Operations\VisualBasicOperationFactory_Methods.vb (14)
96
_semanticModel
, syntax, type, isImplicit)
152
Return OperationFactory.CreateInvalidOperation(
_semanticModel
, [operator].UnderlyingExpression.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit)
270
_semanticModel
,
298
Return OperationFactory.CreateInvalidOperation(
_semanticModel
, parent.Syntax, ImmutableArray(Of IOperation).Empty, isImplicit)
335
_semanticModel
,
351
Dim assignment = New SimpleAssignmentOperation(isRef, target, value,
_semanticModel
, syntax, type, constantValue, isImplicitAssignment)
432
initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value,
_semanticModel
, initializerSyntax, isImplicit)
441
initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, value,
_semanticModel
, initializerSyntax, isImplicit:=False)
447
_semanticModel
,
460
initializer = New VariableInitializerOperation(locals:=ImmutableArray(Of ILocalSymbol).Empty, initializerValue,
_semanticModel
, syntax, isImplicit:=True)
465
Return New VariableDeclaratorOperation(boundLocalDeclaration.LocalSymbol, initializer, ignoredArguments,
_semanticModel
, boundLocalDeclaration.Syntax, isImplicit:=boundLocalDeclaration.WasCompilerGenerated)
471
_semanticModel
,
480
Return New EventAssignmentOperation(eventReference, handlerValue, adds,
_semanticModel
, statement.Syntax, type:=Nothing, isImplicit:=True)
519
_semanticModel
,