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