243 references to LogString
Microsoft.CodeAnalysis.Test.Utilities (243)
Compilation\ControlFlowGraphVerifier.cs (2)
1821LogString("{"); 1828LogString("}");
Compilation\OperationTreeVerifier.cs (241)
79LogString(")"); 86LogString(" ("); 88LogString(", "); 100LogString(" ("); 103LogString($"{nameof(OperationKind)}.{GetKindText(operation.Kind)}"); 106LogString(", "); 112LogString(", "); 119LogString(", IsInvalid"); 125LogString(", IsImplicit"); 128LogString(")"); 132LogString($" (Syntax: {GetSnippetFromSyntax(operation.Syntax)})"); 204LogString(Environment.NewLine); 246LogString($"{header}: {valueStr}"); 258LogString($"{header}: {nameof(CommonConversion)} ({exists}, {isIdentity}, {isNumeric}, {isReference}, {isUserDefined}) ("); 260LogString(")"); 267LogString($"{header}: "); 271LogString($"{symbolStr}"); 277LogString($"{header}: {typeStr}"); 303LogString("null"); 342LogString($"{header}: "); 356LogString($"{header}{elementCount}:"); 368LogString($"{header}{suffix}"); 385LogString(valueStr); 391LogString(element.ToString()); 434LogString("IOperation: "); 442LogString(nameof(IBlockOperation)); 446LogString($" ({statementsStr}{localStr})"); 461LogString($"{nameof(IVariableDeclarationGroupOperation)} ({variablesCountStr})"); 469LogString($"{nameof(IUsingDeclarationOperation)}"); 470LogString($"(IsAsynchronous: {operation.IsAsynchronous}"); 477LogString(")"); 490LogString($"{nameof(IVariableDeclaratorOperation)} ("); 492LogString(")"); 505LogString($"{nameof(IVariableDeclarationOperation)} ({variableCount} declarators)"); 520LogString($"{nameof(ISwitchOperation)} ({caseCountStr}{exitLabelStr})"); 544LogString($"{nameof(ISwitchCaseOperation)} ({caseClauseCountStr}, {statementCountStr})"); 557LogString(nameof(IWhileLoopOperation)); 558LogString($" (ConditionIsTop: {operation.ConditionIsTop}, ConditionIsUntil: {operation.ConditionIsUntil})"); 568LogString(nameof(IForLoopOperation)); 581LogString(nameof(IForToLoopOperation)); 611LogString($"{header}: "); 642LogString(propertyStringBuilder.ToString()); 650LogString(nameof(IForEachLoopOperation)); 663LogString(nameof(ILabeledOperation)); 667LogString($" (Label: {operation.Label.Name})"); 671LogString($" (Label Id: {GetLabelId(operation.Label)})"); 681LogString(nameof(IBranchOperation)); 685LogString($" ({kindStr}{labelStr})"); 693LogString(nameof(IEmptyOperation)); 699LogString(nameof(IReturnOperation)); 707LogString(nameof(ILockOperation)); 716LogString(nameof(ITryOperation)); 719LogString($" (Exit Label Id: {GetLabelId(operation.ExitLabel)})"); 730LogString(nameof(ICatchClauseOperation)); 732LogString($" (Exception type: {exceptionTypeStr})"); 743LogString(nameof(IUsingOperation)); 746LogString($" (IsAsynchronous)"); 752LogString(")"); 773LogString(nameof(IFixedOperation)); 783LogString(nameof(IAggregateQueryOperation)); 792LogString(nameof(IExpressionStatementOperation)); 800LogString(nameof(IWithStatementOperation)); 809LogString(nameof(IStopOperation)); 815LogString(nameof(IEndOperation)); 821LogString(nameof(IInvocationOperation)); 825LogString($" ({isVirtualStr}{spacing}"); 833LogString(")"); 842LogString(nameof(IFunctionPointerInvocationOperation)); 913LogString($"{nameof(IArgumentOperation)} ("); 914LogString($"{nameof(ArgumentKind)}.{operation.ArgumentKind}, "); 916LogString(")"); 931LogString(nameof(IOmittedArgumentOperation)); 937LogString(nameof(IArrayElementReferenceOperation)); 946LogString(nameof(IImplicitIndexerReferenceOperation)); 963LogString(nameof(IInlineArrayAccessOperation)); 972LogString(nameof(IPointerIndirectionReferenceOperation)); 980LogString(nameof(ILocalReferenceOperation)); 981LogString($": {operation.Local.Name}"); 984LogString($" (IsDeclaration: {operation.IsDeclaration})"); 991LogString(nameof(IFlowCaptureOperation)); 992LogString($": {operation.Id.Value}"); 1002LogString(nameof(IFlowCaptureReferenceOperation)); 1003LogString($": {operation.Id.Value}"); 1006LogString(" (IsInitialization)"); 1013LogString(nameof(IIsNullOperation)); 1021LogString(nameof(ICaughtExceptionOperation)); 1027LogString(nameof(IParameterReferenceOperation)); 1028LogString($": {operation.Parameter.Name}"); 1034LogString(nameof(IInstanceReferenceOperation)); 1035LogString($" (ReferenceKind: {operation.ReferenceKind})"); 1055LogString(" (Static)"); 1064LogString(nameof(IFieldReferenceOperation)); 1065LogString($": {operation.Field.ToTestDisplayString()}"); 1068LogString($" (IsDeclaration: {operation.IsDeclaration})"); 1078LogString(nameof(IMethodReferenceOperation)); 1079LogString($": {operation.Method.ToTestDisplayString()}"); 1084LogString(")"); 1089LogString(" (IsVirtual)"); 1099LogString(nameof(IPropertyReferenceOperation)); 1100LogString($": {operation.Property.ToTestDisplayString()}"); 1105LogString(")"); 1118LogString(nameof(IEventReferenceOperation)); 1119LogString($": {operation.Event.ToTestDisplayString()}"); 1124LogString(")"); 1133LogString($"{nameof(IEventAssignmentOperation)} ({kindStr})"); 1143LogString(nameof(IConditionalAccessOperation)); 1153LogString(nameof(IConditionalAccessInstanceOperation)); 1159LogString(nameof(IPlaceholderOperation)); 1166LogString(nameof(IUnaryOperation)); 1179LogString($" ({kindStr})"); 1188LogString(nameof(IBinaryOperation)); 1206LogString($" ({kindStr})"); 1217LogString(nameof(ITupleBinaryOperation)); 1220LogString($" ({kindStr})"); 1238LogString(")"); 1248LogString(nameof(IConversionOperation)); 1252LogString($" ({isTryCast}, {isChecked})"); 1263LogString($"({((ConversionOperation)operation).ConversionConvertible})"); 1275LogString(nameof(IConditionalOperation)); 1279LogString(" (IsRef)"); 1291LogString(nameof(ICoalesceOperation)); 1299LogString($"({((CoalesceOperation)operation).ValueConversionConvertible})"); 1309LogString(nameof(ICoalesceAssignmentOperation)); 1318LogString(nameof(IIsTypeOperation)); 1321LogString(" (IsNotExpression)"); 1336LogString(nameof(ISizeOfOperation)); 1347LogString(nameof(ITypeOfOperation)); 1358LogString(nameof(IAnonymousFunctionOperation)); 1364LogString(")"); 1372LogString(nameof(IFlowAnonymousFunctionOperation)); 1378LogString(")"); 1386LogString(nameof(IDelegateCreationOperation)); 1394LogString(nameof(ILiteralOperation)); 1400LogString(nameof(IUtf8StringOperation)); 1401LogString(" ("); 1402LogString(operation.Value); 1403LogString(")"); 1409LogString(nameof(IAwaitOperation)); 1417LogString(nameof(INameOfOperation)); 1425LogString(nameof(IThrowOperation)); 1433LogString(nameof(IAddressOfOperation)); 1441LogString(nameof(IObjectCreationOperation)); 1443LogString($" (Constructor: {operation.Constructor?.ToTestDisplayString() ?? "<null>"})"); 1453LogString(nameof(IAnonymousObjectCreationOperation)); 1470LogString(nameof(IDynamicObjectCreationOperation)); 1479LogString(nameof(IDynamicInvocationOperation)); 1488LogString(nameof(IDynamicIndexerAccessOperation)); 1497LogString(nameof(IObjectOrCollectionInitializerOperation)); 1505LogString(nameof(IMemberInitializerOperation)); 1522LogString(nameof(IFieldInitializerOperation)); 1529LogString(")"); 1536LogString($" ({operation.InitializedFields.Length} initialized fields)"); 1557LogString(nameof(IVariableInitializerOperation)); 1565LogString(nameof(IPropertyInitializerOperation)); 1572LogString(")"); 1579LogString($" ({operation.InitializedProperties.Length} initialized properties)"); 1600LogString(nameof(IParameterInitializerOperation)); 1602LogString(")"); 1611LogString(nameof(IArrayCreationOperation)); 1620LogString(nameof(IArrayInitializerOperation)); 1621LogString($" ({operation.ElementValues.Length} elements)"); 1630LogString(nameof(ICollectionExpressionOperation)); 1631LogString($" ({operation.Elements.Length} elements"); 1633LogString(")"); 1641LogString(nameof(ISpreadOperation)); 1643LogString(")"); 1651LogString($"({((SpreadOperation)operation).ElementConversionConvertible})"); 1659LogString(nameof(ISimpleAssignmentOperation)); 1663LogString(" (IsRef)"); 1674LogString(nameof(IDeconstructionAssignmentOperation)); 1683LogString(nameof(IDeclarationExpressionOperation)); 1691LogString(nameof(ICompoundAssignmentOperation)); 1704LogString($" ({kindStr})"); 1720LogString(nameof(IIncrementOrDecrementOperation)); 1733LogString($" ({kindStr})"); 1742LogString(nameof(IParenthesizedOperation)); 1750LogString(nameof(IDynamicMemberReferenceOperation)); 1752LogString(" ("); 1754LogString(", "); 1756LogString(")"); 1766LogString(nameof(IDefaultValueOperation)); 1772LogString(nameof(ITypeParameterObjectCreationOperation)); 1780LogString(nameof(INoPiaObjectCreationOperation)); 1788LogString(nameof(IInvalidOperation)); 1796LogString(nameof(ILocalFunctionOperation)); 1799LogString(")"); 1827LogString($" (Label Id: {GetLabelId(operation.Label)})"); 1831LogString($" ({kindStr})"); 1837LogString(nameof(ISingleValueCaseClauseOperation)); 1845LogString(nameof(IRelationalCaseClauseOperation)); 1847LogString($" (Relational operator kind: {kindStr})"); 1855LogString(nameof(IRangeCaseClauseOperation)); 1864LogString(nameof(IDefaultCaseClauseOperation)); 1870LogString(nameof(ITupleOperation)); 1882LogString(nameof(IInterpolatedStringOperation)); 1890LogString(nameof(IInterpolatedStringHandlerCreationOperation)); 1891LogString($" (HandlerAppendCallsReturnBool: {operation.HandlerAppendCallsReturnBool}, HandlerCreationHasSuccessParameter: {operation.HandlerCreationHasSuccessParameter})"); 1900LogString(nameof(IInterpolatedStringAdditionOperation)); 1908LogString(nameof(IInterpolatedStringTextOperation)); 1920LogString(nameof(IInterpolationOperation)); 1935LogString(nameof(IInterpolatedStringAppendOperation)); 1943LogString(nameof(IInterpolatedStringHandlerArgumentPlaceholderOperation)); 1946LogString($" (ArgumentIndex: {operation.ArgumentIndex})"); 1950LogString($" ({operation.PlaceholderKind})"); 1957LogString(nameof(IConstantPatternOperation)); 1965LogString(nameof(IRelationalPatternOperation)); 1966LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); 1973LogString(nameof(INegatedPatternOperation)); 1980LogString(nameof(IBinaryPatternOperation)); 1981LogString($" ({nameof(BinaryOperatorKind)}.{operation.OperatorKind})"); 1989LogString(nameof(ITypePatternOperation)); 1992LogString(")"); 1998LogString(nameof(IDeclarationPatternOperation)); 2002LogString(")"); 2008LogString(nameof(ISlicePatternOperation)); 2018LogString(nameof(IListPatternOperation)); 2023LogString(")"); 2031LogString(nameof(IRecursivePatternOperation)); 2036LogString(")"); 2045LogString(nameof(IPropertySubpatternOperation)); 2055LogString(nameof(IIsPatternOperation)); 2064LogString(nameof(IPatternCaseClauseOperation)); 2075LogString(nameof(ITranslatedQueryOperation)); 2083LogString(nameof(IRaiseEventOperation)); 2092LogString(nameof(IConstructorBodyOperation)); 2103LogString(nameof(IMethodBodyOperation)); 2111LogString(nameof(IDiscardOperation)); 2112LogString(" ("); 2114LogString(")"); 2120LogString(nameof(IDiscardPatternOperation)); 2126LogString($"{nameof(ISwitchExpressionOperation)} ({operation.Arms.Length} arms, IsExhaustive: {operation.IsExhaustive})"); 2134LogString($"{nameof(ISwitchExpressionArmOperation)} ({operation.Locals.Length} locals)"); 2145LogString(nameof(IStaticLocalInitializationSemaphoreOperation)); 2147LogString(")"); 2153LogString(nameof(IRangeOperation)); 2157LogString(" (IsLifted)"); 2168LogString(nameof(IReDimOperation)); 2171LogString(" (Preserve)"); 2179LogString(nameof(IReDimClauseOperation)); 2187LogString(nameof(IWithOperation)); 2199LogString(nameof(IAttributeOperation));