示例#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);
 }
示例#2
0
		public void AcceptAggregate(AggregateBinding aggregate)
		{
			Add(aggregate.Name, aggregate.GetFullName(), "AGGREGATE", AGGREGATE_IMG_INDEX);
		}
示例#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);
 }
示例#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);
 }
示例#5
0
		public void AcceptAggregate(AggregateBinding aggregate)
		{
			AddAggregate(aggregate);
		}
示例#6
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());
		}
示例#7
0
		public void AcceptAggregate(AggregateBinding aggregate)
		{
			if (!_scopeInfo.AggregateNames.ContainsKey(aggregate.Name))
				_scopeInfo.AggregateNames.Add(aggregate.Name, null);
		}