public static void Verify( this ImmutableBindingDiagnostic <AssemblySymbol> actual, params Microsoft.CodeAnalysis.Test.Utilities.DiagnosticDescription[] expected ) { actual.Diagnostics.Verify(expected); }
public EvaluatedConstant( ConstantValue value, ImmutableBindingDiagnostic <AssemblySymbol> diagnostics ) { this.Value = value; this.Diagnostics = diagnostics.NullToEmpty(); }
public SymbolAndDiagnostics( Symbol symbol, ImmutableBindingDiagnostic <AssemblySymbol> diagnostics ) { this.Symbol = symbol; this.Diagnostics = diagnostics; }
public ExpressionAndDiagnostics( BoundExpression expression, ImmutableBindingDiagnostic <AssemblySymbol> diagnostics ) { this.Expression = expression; this.Diagnostics = diagnostics; }
public MethodGroupResolution( MethodGroup methodGroup, ImmutableBindingDiagnostic <AssemblySymbol> diagnostics ) : this( methodGroup, otherSymbol : null, overloadResolutionResult : null, analyzedArguments : null, methodGroup.ResultKind, diagnostics ) { }
public MethodGroupResolution( MethodGroup methodGroup, Symbol otherSymbol, OverloadResolutionResult <MethodSymbol> overloadResolutionResult, AnalyzedArguments analyzedArguments, LookupResultKind resultKind, ImmutableBindingDiagnostic <AssemblySymbol> diagnostics) { Debug.Assert((methodGroup == null) || (methodGroup.Methods.Count > 0)); Debug.Assert((methodGroup == null) || ((object)otherSymbol == null)); // Methods should be represented in the method group. Debug.Assert(((object)otherSymbol == null) || (otherSymbol.Kind != SymbolKind.Method)); Debug.Assert(resultKind != LookupResultKind.Ambiguous); // HasAnyApplicableMethod is expecting Viable methods. Debug.Assert(!diagnostics.Diagnostics.IsDefault); Debug.Assert(!diagnostics.Dependencies.IsDefault); this.MethodGroup = methodGroup; this.OtherSymbol = otherSymbol; this.OverloadResolutionResult = overloadResolutionResult; this.AnalyzedArguments = analyzedArguments; this.ResultKind = resultKind; this.Diagnostics = diagnostics; }