public void AcceptAggregate(AggregateBinding aggregate)
 {
     if (!_scopeInfo.AggregateNames.ContainsKey(aggregate.Name))
     {
         _scopeInfo.AggregateNames.Add(aggregate.Name, null);
     }
 }
Beispiel #2
0
        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());
        }
Beispiel #3
0
 public void AcceptAggregate(AggregateBinding aggregate)
 {
     AddAggregate(aggregate);
 }
Beispiel #4
0
 public void AcceptAggregate(AggregateBinding aggregate)
 {
     Add(aggregate.Name, aggregate.GetFullName(), "AGGREGATE", AGGREGATE_IMG_INDEX);
 }
Beispiel #5
0
        void IErrorReporter.AggregateDoesNotSupportType(AggregateBinding aggregateBinding, Type argumentType)
        {
            string message = String.Format(CultureInfo.CurrentCulture, Resources.AggregateDoesNotSupportType, aggregateBinding.Name, FormattingHelpers.FormatType(argumentType));

            HandleError(ErrorId.AggregateDoesNotSupportType, message);
        }
Beispiel #6
0
        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);
        }