20 overrides of Display
Microsoft.CodeAnalysis.CSharp (20)
BoundTree\Formatting.cs (20)
30public override object Display 38public override object Display 46public override object Display 54public override object Display 62public override object Display 70public override object Display 78public override object Display 107public override object Display 115public override object Display 123public override object Display 131public override object Display 139public override object Display 147public override object Display 155public override object Display 161public override object Display 167public override object Display 173public override object Display 179public override object Display => Expression.Display; 184public override object Display => FormattableStringFactory.Create("&{0}", Operand.Display); 189public override object Display
67 references to Display
Microsoft.CodeAnalysis.CSharp (67)
Binder\Binder_AnonymousTypes.cs (1)
245errorArg = expression.Display;
Binder\Binder_Await.cs (1)
573Error(diagnostics, ErrorCode.ERR_BadAwaitArgIntrinsic, node, expression.Display);
Binder\Binder_Conversions.cs (3)
2411Error(diagnostics, ErrorCode.ERR_NoImplicitConv, spreadElement.Expression.Syntax, spreadElement.Expression.Display, elementType); 2479source.Consequence.Display, 2480source.Alternative.Display,
Binder\Binder_Expressions.cs (9)
349object trueArg = op.Consequence.Display; 350object falseArg = op.Alternative.Display; 2885diagnostics.Add(ErrorCode.ERR_AmbigUDConv, syntax.Location, originalUserDefinedConversions[0], originalUserDefinedConversions[1], operand.Display, targetType); 7941DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, SyntaxFacts.GetText(operatorToken.Kind()), boundLeft.Display); 8027Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, operatorToken.Text, boundLeft.Display); 8464Error(diagnostics, ErrorCode.ERR_NoSuchMember, name, boundLeft.Display, plainName); 10597diagnostics.Add(errorOpt ?? new CSDiagnosticInfo(ErrorCode.ERR_BadIndexLHS, expr.Display), node.Location); 12450DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.ERR_CannotBeMadeNullable, access.Display); 12539Error(diagnostics, ErrorCode.ERR_BadUnaryOp, operatorToken.GetLocation(), operatorToken.Text, receiver.Display);
Binder\Binder_Operators.cs (21)
101Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, node.OperatorToken.Text, left.Display, right.Display); 817Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, node.OperatorToken.Text, left.Display, right.Display); 1292if (operatorResolutionForReporting.TryReportDiagnostics(node, this, operand.Display, null, diagnostics)) 1301Error(diagnostics, errorCode, node, operatorName, operand.Display); 1327if (operatorResolutionForReporting.TryReportDiagnostics(node, this, left.Display, right.Display, diagnostics)) 1341Error(diagnostics, ErrorCode.ERR_AmbigBinaryOpsOnDefault, node, operatorToken.Text, left.Display, right.Display); 1352Error(diagnostics, ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, node, operatorToken.Text, left.Display); 1355Error(diagnostics, ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, node, operatorToken.Text, right.Display); 1376Error(diagnostics, errorCode, node, operatorToken.Text, left.Display, right.Display); 4355Error(diagnostics, ErrorCode.ERR_BadOpOnNullOrDefaultOrNew, node, operatorText, operand.Display); 4781Error(diagnostics, ErrorCode.ERR_BadUnaryOp, node, SyntaxFacts.GetText(SyntaxKind.IsKeyword), operand.Display); 4958diagnostics.Add(ErrorCode.ERR_BadPatternExpression, node.Left.Location, operand.Display); 5649Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.GetText(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display); 5905Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, SyntaxFacts.GetText(node.OperatorToken.Kind()), leftOperand.Display, rightOperand.Display);
Binder\Binder_Patterns.cs (4)
73diagnostics.Add(ErrorCode.ERR_BadPatternExpression, node.Expression.Location, expression.Display); 716diagnostics.Add(ErrorCode.ERR_PatternWrongType, expression.Syntax.Location, inputType, expression.Display); 728expression.Syntax.Location, inputType, expression.Display, new CSharpRequiredLanguageVersion(requiredVersion)); 837diagnostics.Add(ErrorCode.ERR_PatternWrongType, expression.Syntax.Location, caseType, expression.Display);
Binder\Binder_Query.cs (1)
740Error(d, ErrorCode.ERR_QueryRangeVariableAssignedBadValue, errorLocation, yExpression.Display);
Binder\Binder_Statements.cs (2)
908Error(diagnostics, ErrorCode.ERR_ImplicitlyTypedVariableAssignedBadValue, errorSyntax, expression.Display); 2363Error(diagnostics, ErrorCode.ERR_NoImplicitConv, syntax, operand.Display, targetType);
Binder\Binder_TupleOperators.cs (2)
193Error(diagnostics, ErrorCode.ERR_BadBinaryOps, node, node.OperatorToken.Text, left.Display, right.Display);
Binder\ForEachLoopBinder.cs (1)
958diagnostics.Add(ErrorCode.ERR_AnonMethGrpInForEach, collectionSyntax.Location, collectionExpr.Display);
Binder\LockBinder.cs (1)
48Error(diagnostics, ErrorCode.ERR_LockNeedsReference, exprSyntax, expr.Display);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (7)
227Debug.Assert(arguments.Arguments.All(a => a.Display != null)); 1223argument.Display, 1289argument.Display, //'<null>' doesn't need refkind 1343Debug.Assert(argument.Display != null); 1355argument.Display, 1367if (argument.Display is TypeSymbol argType) 1403argument.Display,
Binder\SwitchBinder.cs (1)
465diagnostics.Add(ErrorCode.ERR_SwitchExpressionValueExpected, node.Location, switchGoverningExpression.Display);
Binder\SwitchExpressionBinder.cs (1)
213diagnostics.Add(ErrorCode.ERR_BadPatternExpression, SwitchExpressionSyntax.GoverningExpression.Location, switchGoverningExpression.Display);
Binder\UsingStatementBinder.cs (1)
275Error(diagnostics, errorCode, syntax, declarationTypeOpt ?? expressionOpt!.Display);
BoundTree\Formatting.cs (10)
40get { return ConstantValueOpt?.IsNull == true ? MessageID.IDS_NULL.Localize() : base.Display; } 89argumentDisplays[0] = arguments[0].Display; 94argumentDisplays[i] = arguments[i].Display; 156=> (Type is null) ? FormattableStringFactory.Create("stackalloc {0}[{1}]", ElementType, Count.WasCompilerGenerated ? null : Count.Syntax.ToString()) : base.Display; 162=> (Type is null) ? MessageID.IDS_FeatureSwitchExpression.Localize() : base.Display; 168=> (Type is null) ? MessageID.IDS_FeatureTargetTypedConditional.Localize() : base.Display; 174=> (Type is null) ? MessageID.IDS_CollectionExpression.Localize() : base.Display; 179public override object Display => Expression.Display; 206argumentDisplays[0] = arguments[0].Display; 211argumentDisplays[i] = arguments[i].Display;
Symbols\Source\ParameterHelpers.cs (1)
1000defaultExpression.Display, parameterType);