[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom CodeGotoStatement.cs,
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom CodeGotoStatement.cs,NONE,1.1 CodeLinePragma.cs,NONE,1.1 CodeStatementCollection.cs,NONE,1.1 CodeTypeReferenceCollection.cs,NONE,1.1 CodeNamespaceImportCollection.cs,1.1,1.2 CodeTypeDeclaration.cs,1.1,1.2 Makefile,1.1,1.2 RuleOutput.cs,1.3,1.4 rules.txt,1.5,1.6 |
Date: |
Fri, 23 May 2003 00:46:18 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom
In directory subversions:/tmp/cvs-serv25308/System/CodeDom
Modified Files:
CodeNamespaceImportCollection.cs CodeTypeDeclaration.cs
Makefile RuleOutput.cs rules.txt
Added Files:
CodeGotoStatement.cs CodeLinePragma.cs
CodeStatementCollection.cs CodeTypeReferenceCollection.cs
Log Message:
Improve signature-compatibility of the System.CodeDom namespace.
--- NEW FILE ---
/*
* CodeGotoStatement.cs - Implementation of the
* System.CodeDom.CodeGotoStatement class.
*
* Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.CodeDom
{
#if !ECMA_COMPAT
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Specialized;
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeGotoStatement : CodeStatement
{
// Internal state.
private String _Label;
// Constructors.
public CodeGotoStatement(String _Label)
{
this._Label = _Label;
}
// Properties.
public String Label
{
get
{
return _Label;
}
set
{
_Label = value;
}
}
}; // class CodeGotoStatement
#endif // !ECMA_COMPAT
}; // namespace System.CodeDom
--- NEW FILE ---
/*
* CodeLinePragma.cs - Implementation of the
* System.CodeDom.CodeLinePragma class.
*
* Copyright (C) 2002 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.CodeDom
{
#if !ECMA_COMPAT
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Specialized;
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeLinePragma
{
// Internal state.
private String _FileName;
private int _LineNumber;
// Constructors.
public CodeLinePragma(String _FileName, int _LineNumber)
{
this._FileName = _FileName;
this._LineNumber = _LineNumber;
}
// Properties.
public String FileName
{
get
{
return _FileName;
}
set
{
_FileName = value;
}
}
public int LineNumber
{
get
{
return _LineNumber;
}
set
{
_LineNumber = value;
}
}
}; // class CodeLinePragma
#endif // !ECMA_COMPAT
}; // namespace System.CodeDom
--- NEW FILE ---
/*
* CodeStatementCollection.cs - Implementation of the
* System.CodeDom.CodeStatementCollection class.
*
* Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.CodeDom
{
#if !ECMA_COMPAT
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Specialized;
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeStatementCollection : CollectionBase
{
// Constructors.
public CodeStatementCollection()
{
}
public CodeStatementCollection(CodeStatement[] value)
{
AddRange(value);
}
public CodeStatementCollection(CodeStatementCollection value)
{
AddRange(value);
}
// Properties.
public CodeStatement this[int index]
{
get
{
return (CodeStatement)(List[index]);
}
set
{
List[index] = value;
}
}
// Methods.
public int Add(CodeStatement value)
{
return List.Add(value);
}
public int Add(CodeExpression value)
{
return Add(new CodeExpressionStatement(value));
}
public void AddRange(CodeStatement[] value)
{
foreach(CodeStatement e in value)
{
List.Add(e);
}
}
public void AddRange(CodeStatementCollection value)
{
foreach(CodeStatement e in value)
{
List.Add(e);
}
}
public bool Contains(CodeStatement value)
{
return List.Contains(value);
}
public void CopyTo(CodeStatement[] array, int index)
{
List.CopyTo(array, index);
}
public int IndexOf(CodeStatement value)
{
return List.IndexOf(value);
}
public void Insert(int index, CodeStatement value)
{
List.Insert(index, value);
}
public void Remove(CodeStatement value)
{
int index = List.IndexOf(value);
if(index < 0)
{
throw new ArgumentException
(S._("Arg_NotCollMember"),
"value");
}
List.RemoveAt(index);
}
}; // class CodeStatementCollection
#endif // !ECMA_COMPAT
}; // namespace System.CodeDom
--- NEW FILE ---
/*
* CodeTypeReferenceCollection.cs - Implementation of the
* System.CodeDom.CodeTypeReferenceCollection class.
*
* Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.CodeDom
{
#if !ECMA_COMPAT
using System.Runtime.InteropServices;
using System.Collections;
using System.Collections.Specialized;
[Serializable]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class CodeTypeReferenceCollection : CollectionBase
{
// Constructors.
public CodeTypeReferenceCollection()
{
}
public CodeTypeReferenceCollection(CodeTypeReference[] value)
{
AddRange(value);
}
public CodeTypeReferenceCollection(CodeTypeReferenceCollection value)
{
AddRange(value);
}
// Properties.
public CodeTypeReference this[int index]
{
get
{
return (CodeTypeReference)(List[index]);
}
set
{
List[index] = value;
}
}
// Methods.
public int Add(CodeTypeReference value)
{
return List.Add(value);
}
public void Add(String value)
{
Add(new CodeTypeReference(value));
}
public void Add(Type value)
{
Add(new CodeTypeReference(value));
}
public void AddRange(CodeTypeReference[] value)
{
foreach(CodeTypeReference e in value)
{
List.Add(e);
}
}
public void AddRange(CodeTypeReferenceCollection value)
{
foreach(CodeTypeReference e in value)
{
List.Add(e);
}
}
public bool Contains(CodeTypeReference value)
{
return List.Contains(value);
}
public void CopyTo(CodeTypeReference[] array, int index)
{
List.CopyTo(array, index);
}
public int IndexOf(CodeTypeReference value)
{
return List.IndexOf(value);
}
public void Insert(int index, CodeTypeReference value)
{
List.Insert(index, value);
}
public void Remove(CodeTypeReference value)
{
int index = List.IndexOf(value);
if(index < 0)
{
throw new ArgumentException
(S._("Arg_NotCollMember"),
"value");
}
List.RemoveAt(index);
}
}; // class CodeTypeReferenceCollection
#endif // !ECMA_COMPAT
}; // namespace System.CodeDom
Index: CodeNamespaceImportCollection.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/CodeNamespaceImportCollection.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CodeNamespaceImportCollection.cs 15 Nov 2002 04:33:04 -0000 1.1
--- CodeNamespaceImportCollection.cs 23 May 2003 04:46:15 -0000 1.2
***************
*** 3,7 ****
* System.CodeDom.CodeNamespaceImportCollection class.
*
! * Copyright (C) 2002 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
--- 3,7 ----
* System.CodeDom.CodeNamespaceImportCollection class.
*
! * Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
***************
*** 69,72 ****
--- 69,93 ----
}
+ // Get the number of items in this collection.
+ public int Count
+ {
+ get
+ {
+ return list.Count;
+ }
+ }
+
+ // Clear this collection.
+ public void Clear()
+ {
+ list.Clear();
+ }
+
+ // Get an enumerator for this collection.
+ public IEnumerator GetEnumerator()
+ {
+ return list.GetEnumerator();
+ }
+
// Implement the IList interface.
int IList.Add(Object value)
***************
*** 74,80 ****
return list.Add((CodeNamespaceImport)value);
}
! public void Clear()
{
! list.Clear();
}
bool IList.Contains(Object value)
--- 95,101 ----
return list.Add((CodeNamespaceImport)value);
}
! void IList.Clear()
{
! Clear();
}
bool IList.Contains(Object value)
***************
*** 129,133 ****
list.CopyTo(array, index);
}
! public int Count
{
get
--- 150,154 ----
list.CopyTo(array, index);
}
! int ICollection.Count
{
get
***************
*** 152,158 ****
// Implement the IEnumerable interface.
! public IEnumerator GetEnumerator()
{
! return list.GetEnumerator();
}
--- 173,179 ----
// Implement the IEnumerable interface.
! IEnumerator IEnumerable.GetEnumerator()
{
! return GetEnumerator();
}
Index: CodeTypeDeclaration.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/CodeTypeDeclaration.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CodeTypeDeclaration.cs 15 Nov 2002 04:33:04 -0000 1.1
--- CodeTypeDeclaration.cs 23 May 2003 04:46:15 -0000 1.2
***************
*** 3,7 ****
* System.CodeDom.CodeTypeDeclaration class.
*
! * Copyright (C) 2002 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
--- 3,7 ----
* System.CodeDom.CodeTypeDeclaration class.
*
! * Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
***************
*** 161,166 ****
// Events.
! public EventHandler PopulateBaseTypes;
! public EventHandler PopulateMembers;
}; // class CodeTypeDeclaration
--- 161,166 ----
// Events.
! public event EventHandler PopulateBaseTypes;
! public event EventHandler PopulateMembers;
}; // class CodeTypeDeclaration
Index: Makefile
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Makefile 15 Nov 2002 04:33:04 -0000 1.1
--- Makefile 23 May 2003 04:46:15 -0000 1.2
***************
*** 2,3 ****
--- 2,4 ----
all:
(cd ..;make)
+ (cd ..;make phase-two)
Index: RuleOutput.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/RuleOutput.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** RuleOutput.cs 16 Nov 2002 07:17:17 -0000 1.3
--- RuleOutput.cs 23 May 2003 04:46:15 -0000 1.4
***************
*** 1173,1209 ****
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
- public class CodeGotoStatement : CodeStatement
- {
-
- // Internal state.
- private String _Label;
-
- // Constructors.
- public CodeGotoStatement()
- {
- }
- public CodeGotoStatement(String _Label)
- {
- this._Label = _Label;
- }
-
- // Properties.
- public String Label
- {
- get
- {
- return _Label;
- }
- set
- {
- _Label = value;
- }
- }
-
- }; // class CodeGotoStatement
-
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
public class CodeIndexerExpression : CodeExpression
{
--- 1173,1176 ----
***************
*** 1374,1423 ****
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
- public class CodeLinePragma : CodeObject
- {
-
- // Internal state.
- private String _FileName;
- private int _LineNumber;
-
- // Constructors.
- public CodeLinePragma()
- {
- }
- public CodeLinePragma(String _FileName, int _LineNumber)
- {
- this._FileName = _FileName;
- this._LineNumber = _LineNumber;
- }
-
- // Properties.
- public String FileName
- {
- get
- {
- return _FileName;
- }
- set
- {
- _FileName = value;
- }
- }
- public int LineNumber
- {
- get
- {
- return _LineNumber;
- }
- set
- {
- _LineNumber = value;
- }
- }
-
- }; // class CodeLinePragma
-
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
public class CodeMemberProperty : CodeTypeMember
{
--- 1341,1344 ----
***************
*** 1961,2043 ****
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
- public class CodeStatementCollection : CollectionBase
- {
-
- // Constructors.
- public CodeStatementCollection()
- {
- }
- public CodeStatementCollection(CodeStatement[] value)
- {
- AddRange(value);
- }
- public CodeStatementCollection(CodeStatementCollection value)
- {
- AddRange(value);
- }
-
- // Properties.
- public CodeStatement this[int index]
- {
- get
- {
- return (CodeStatement)(List[index]);
- }
- set
- {
- List[index] = value;
- }
- }
-
- // Methods.
- public int Add(CodeStatement value)
- {
- return List.Add(value);
- }
- public void AddRange(CodeStatement[] value)
- {
- foreach(CodeStatement e in value)
- {
- List.Add(e);
- }
- }
- public void AddRange(CodeStatementCollection value)
- {
- foreach(CodeStatement e in value)
- {
- List.Add(e);
- }
- }
- public bool Contains(CodeStatement value)
- {
- return List.Contains(value);
- }
- public void CopyTo(CodeStatement[] array, int index)
- {
- List.CopyTo(array, index);
- }
- public int IndexOf(CodeStatement value)
- {
- return List.IndexOf(value);
- }
- public void Insert(int index, CodeStatement value)
- {
- List.Insert(index, value);
- }
- public void Remove(CodeStatement value)
- {
- int index = List.IndexOf(value);
- if(index < 0)
- {
- throw new ArgumentException(S._("Arg_NotCollMember"),
"value");
- }
- List.RemoveAt(index);
- }
-
- }; // class CodeStatementCollection
-
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
public class CodeStatement : CodeObject
{
--- 1882,1885 ----
***************
*** 2346,2428 ****
}; // class CodeTypeMemberCollection
-
- [Serializable]
- [ClassInterface(ClassInterfaceType.AutoDispatch)]
- [ComVisible(true)]
- public class CodeTypeReferenceCollection : CollectionBase
- {
-
- // Constructors.
- public CodeTypeReferenceCollection()
- {
- }
- public CodeTypeReferenceCollection(CodeTypeReference[] value)
- {
- AddRange(value);
- }
- public CodeTypeReferenceCollection(CodeTypeReferenceCollection value)
- {
- AddRange(value);
- }
-
- // Properties.
- public CodeTypeReference this[int index]
- {
- get
- {
- return (CodeTypeReference)(List[index]);
- }
- set
- {
- List[index] = value;
- }
- }
-
- // Methods.
- public int Add(CodeTypeReference value)
- {
- return List.Add(value);
- }
- public void AddRange(CodeTypeReference[] value)
- {
- foreach(CodeTypeReference e in value)
- {
- List.Add(e);
- }
- }
- public void AddRange(CodeTypeReferenceCollection value)
- {
- foreach(CodeTypeReference e in value)
- {
- List.Add(e);
- }
- }
- public bool Contains(CodeTypeReference value)
- {
- return List.Contains(value);
- }
- public void CopyTo(CodeTypeReference[] array, int index)
- {
- List.CopyTo(array, index);
- }
- public int IndexOf(CodeTypeReference value)
- {
- return List.IndexOf(value);
- }
- public void Insert(int index, CodeTypeReference value)
- {
- List.Insert(index, value);
- }
- public void Remove(CodeTypeReference value)
- {
- int index = List.IndexOf(value);
- if(index < 0)
- {
- throw new ArgumentException(S._("Arg_NotCollMember"),
"value");
- }
- List.RemoveAt(index);
- }
-
- }; // class CodeTypeReferenceCollection
[Serializable]
--- 2188,2191 ----
Index: rules.txt
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/CodeDom/rules.txt,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** rules.txt 16 Nov 2002 07:17:17 -0000 1.5
--- rules.txt 23 May 2003 04:46:15 -0000 1.6
***************
*** 2,6 ****
# rules.txt - Code generation rules for "System.CodeDom" classes.
#
! # Copyright (C) 2002 Southern Storm Software, Pty Ltd.
#
# This program is free software; you can redistribute it and/or modify
--- 2,6 ----
# rules.txt - Code generation rules for "System.CodeDom" classes.
#
! # Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
#
# This program is free software; you can redistribute it and/or modify
***************
*** 67,72 ****
CodeExpression<TargetObject> String<FieldName>
- CodeGotoStatement: String<Label>
-
CodeIndexerExpression:
CodeExpression<TargetObject> *CodeExpression<Indices>
--- 67,70 ----
***************
*** 76,80 ****
CodeLabeledStatement: String<Label> ?CodeStatement<Statement>
- CodeLinePragma: String<FileName> int<LineNumber>
CodeMemberProperty-CodeTypeMember:
--- 74,77 ----
***************
*** 101,105 ****
CodeSnippetStatement: String<Value>
CodeSnippetTypeMember-CodeTypeMember: String<Text>
- CodeStatementCollection: CodeStatement
CodeStatement-CodeObject: $CodeLinePragma<LinePragma>
--- 98,101 ----
***************
*** 112,116 ****
CodeTypeDeclarationCollection: CodeTypeDeclaration
CodeTypeMemberCollection: CodeTypeMember
- CodeTypeReferenceCollection: CodeTypeReference
CodeVariableReferenceExpression: String<VariableName>
--- 108,111 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom CodeGotoStatement.cs,NONE,1.1 CodeLinePragma.cs,NONE,1.1 CodeStatementCollection.cs,NONE,1.1 CodeTypeReferenceCollection.cs,NONE,1.1 CodeNamespaceImportCollection.cs,1.1,1.2 CodeTypeDeclaration.cs,1.1,1.2 Makefile,1.1,1.2 RuleOutput.cs,1.3,1.4 rules.txt,1.5,1.6,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom/Compiler CodeDomProvider.cs,1.1,1.2 CodeGenerator.cs,1.2,1.3 CompilerParameters.cs,1.1,1.2 CompilerResults.cs,1.1,1.2 Executor.cs,1.1,1.2 GeneratorSupport.cs,1.1,1.2 IndentedTextWriter.cs,1.1,1.2 Makefile,1.1,1.2 TempFileCollection.cs,1.1,1.2
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.909,1.910
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/CodeDom/Compiler CodeDomProvider.cs,1.1,1.2 CodeGenerator.cs,1.2,1.3 CompilerParameters.cs,1.1,1.2 CompilerResults.cs,1.1,1.2 Executor.cs,1.1,1.2 GeneratorSupport.cs,1.1,1.2 IndentedTextWriter.cs,1.1,1.2 Makefile,1.1,1.2 TempFileCollection.cs,1.1,1.2
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.909,1.910
- Index(es):