Files
mono/mcs/class/System/System.CodeDom.Compiler/CompilerErrorCollection.cs
T
Andreas N 133bb5f987 2003-06-20 Andreas Nahr <[email protected]>
* CodeCompiler.cs: Nearly completely implemented
	* CodeDomProvider.cs: Added missing Attribute, restyled according to style guidelines
	* CodeGenerator.cs: Fixed visibilies, added missing members, implemented members, stubbed out missing member, restyled according to style guidelines
	* CodeParser.cs: Added and implemented (ok no real implementation needed ;)
	* CompilerErrorCollection.cs: Removed unneeded MonoTODOs, restyled according to style guidelines
	* CompilerParameters.cs: Fixed wrong properties, Added Initializers, restyled according to style guidelines
	* CompilerResults.cs: Added Evidence property, added initial values
	* Executor.cs: Added and partially implemented (should probably be used by CodeCompiler)

	* CompilerOptions.cs: Deleted this file (such a class does not exist)

svn path=/trunk/mcs/; revision=15992
2003-07-06 21:55:32 +00:00

93 lines
1.7 KiB
C#

//
// System.CodeDom.Compiler.CompilerErrorCollection.cs
//
// Authors:
// Daniel Stodden ([email protected])
// Gonzalo Paniagua Javier ([email protected])
//
// (C) 2002 Ximian, Inc. (http://www.ximian.com)
//
using System.Collections;
namespace System.CodeDom.Compiler
{
[Serializable ()]
public class CompilerErrorCollection : CollectionBase
{
public CompilerErrorCollection ()
{
}
public CompilerErrorCollection (CompilerErrorCollection value)
{
InnerList.AddRange(value.InnerList);
}
public CompilerErrorCollection (CompilerError[] value)
{
InnerList.AddRange(value);
}
public int Add (CompilerError value)
{
return InnerList.Add(value);
}
public void AddRange (CompilerError[] value)
{
InnerList.AddRange(value);
}
public void AddRange (CompilerErrorCollection value)
{
InnerList.AddRange(value.InnerList);
}
public bool Contains (CompilerError value)
{
return InnerList.Contains(value);
}
public void CopyTo (CompilerError[] array, int index)
{
InnerList.CopyTo(array,index);
}
public int IndexOf (CompilerError value)
{
return InnerList.IndexOf(value);
}
public void Insert (int index, CompilerError value)
{
InnerList.Insert(index,value);
}
public void Remove (CompilerError value)
{
InnerList.Remove(value);
}
public CompilerError this [int index] {
get { return (CompilerError) InnerList[index]; }
set { InnerList[index]=value; }
}
public bool HasErrors {
get {
foreach (CompilerError error in InnerList)
if (!error.IsWarning) return true;
return false;
}
}
public bool HasWarnings {
get {
foreach (CompilerError error in InnerList)
if (error.IsWarning) return true;
return false;
}
}
}
}