Beispiel #1
0
 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);
 }
Beispiel #2
0
		public void AcceptAggregate(AggregateBinding aggregate)
		{
			Add(aggregate.Name, aggregate.GetFullName(), "AGGREGATE", AGGREGATE_IMG_INDEX);
		}
Beispiel #3
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 #4
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);
 }
		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());
		}
Beispiel #7
0
		public void AcceptAggregate(AggregateBinding aggregate)
		{
			if (!_scopeInfo.AggregateNames.ContainsKey(aggregate.Name))
				_scopeInfo.AggregateNames.Add(aggregate.Name, null);
		}