void IErrorReporter.AmbiguousAggregate(SourceRange sourceRange, Identifier identifier, AggregateBinding[] candidates) { string message = String.Format(CultureInfo.CurrentCulture, Resources.AmbiguousAggregate, identifier, FormattingHelpers.FormatBindingList(candidates)); HandleError(sourceRange, ErrorId.AmbiguousAggregate, message); }
public void AcceptAggregate(AggregateBinding aggregate) { Add(aggregate.Name, aggregate.GetFullName(), "AGGREGATE", AGGREGATE_IMG_INDEX); }
void IErrorReporter.AggregateDoesNotSupportType(AggregateBinding aggregateBinding, Type argumentType) { string message = String.Format(CultureInfo.CurrentCulture, Resources.AggregateDoesNotSupportType, aggregateBinding.Name, FormattingHelpers.FormatType(argumentType)); HandleError(ErrorId.AggregateDoesNotSupportType, message); }
void IErrorReporter.AggregateCannotContainAggregate(AggregateExpression expression, AggregateBinding parent, AggregateBinding nested) { string message = String.Format(CultureInfo.CurrentCulture, Resources.AggregateCannotContainAggregate, expression.GenerateSource(), parent.Name, nested.Name); HandleError(ErrorId.AggregateCannotContainAggregate, message); }
public void AcceptAggregate(AggregateBinding aggregate) { AddAggregate(aggregate); }
private void AddAggregate(AggregateBinding aggregateBinding) { if (_parameterIndex > 1) return; StringBuilder sb = new StringBuilder(); using (StringWriter sw = new StringWriter(sb, CultureInfo.CurrentCulture)) { XmlWriter writer = new XmlTextWriter(sw); writer.WriteString("AGGREGATE "); writer.WriteString(aggregateBinding.Name); writer.WriteString(" ("); writer.WriteStartElement("b"); writer.WriteString("value"); writer.WriteEndElement(); writer.WriteString(")"); } _infoTip.Info.Add(sb.ToString()); }
public void AcceptAggregate(AggregateBinding aggregate) { if (!_scopeInfo.AggregateNames.ContainsKey(aggregate.Name)) _scopeInfo.AggregateNames.Add(aggregate.Name, null); }