Author: lluis
Date: 2007-10-15 19:29:19 -0400 (Mon, 15 Oct 2007)
New Revision: 87549
Removed:
trunk/monodevelop/Extras/CSharpBinding/Parser/TypeNameResolver.cs
Modified:
trunk/monodevelop/Extras/CSharpBinding/CSharpBinding.mdp
trunk/monodevelop/Extras/CSharpBinding/ChangeLog
trunk/monodevelop/Extras/CSharpBinding/Makefile.am
Log:
* CSharpBinding.mdp, Parser/TypeNameResolver.cs, Makefile.am: Moved
TypeNameResolver to MD.Projects.
Modified: trunk/monodevelop/Extras/CSharpBinding/CSharpBinding.mdp
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/CSharpBinding.mdp 2007-10-15
23:29:02 UTC (rev 87548)
+++ trunk/monodevelop/Extras/CSharpBinding/CSharpBinding.mdp 2007-10-15
23:29:19 UTC (rev 87549)
@@ -77,7 +77,6 @@
<File name="./gtk-gui/CSharpBinding.CodeGenerationPanelWidget.cs"
subtype="Code" buildaction="Compile" />
<File name="./gtk-gui/CSharpBinding.FormattingPanelWidget.cs"
subtype="Code" buildaction="Compile" />
<File name="./CSharpAmbience.cs" subtype="Code" buildaction="Compile" />
- <File name="./Parser/TypeNameResolver.cs" subtype="Code"
buildaction="Compile" />
</Contents>
<References>
<ProjectReference type="Project" localcopy="False"
refto="MonoDevelop.Core" />
Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-10-15 23:29:02 UTC
(rev 87548)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-10-15 23:29:19 UTC
(rev 87549)
@@ -1,3 +1,8 @@
+2007-10-16 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * CSharpBinding.mdp, Parser/TypeNameResolver.cs, Makefile.am: Moved
+ TypeNameResolver to MD.Projects.
+
2007-10-15 Mike Krüger <[EMAIL PROTECTED]>
* Gui/CSharpTextEditorExtension.cs: Fixed "Bug 333140 - Xml comment
Modified: trunk/monodevelop/Extras/CSharpBinding/Makefile.am
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Makefile.am 2007-10-15 23:29:02 UTC
(rev 87548)
+++ trunk/monodevelop/Extras/CSharpBinding/Makefile.am 2007-10-15 23:29:19 UTC
(rev 87549)
@@ -54,7 +54,6 @@
Parser/SharpDevelopTree/GenericParameter.cs \
Parser/SharpDevelopTree/Method.cs \
Parser/SharpDevelopTree/ReturnType.cs \
- Parser/TypeNameResolver.cs \
Parser/TypeVisitor.cs \
Project/CSharpCompilerParameters.cs
Deleted: trunk/monodevelop/Extras/CSharpBinding/Parser/TypeNameResolver.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Parser/TypeNameResolver.cs
2007-10-15 23:29:02 UTC (rev 87548)
+++ trunk/monodevelop/Extras/CSharpBinding/Parser/TypeNameResolver.cs
2007-10-15 23:29:19 UTC (rev 87549)
@@ -1,74 +0,0 @@
-// TypeNameResolver.cs
-//
-// Author:
-// Lluis Sanchez Gual
-//
-// Copyright (c) 2007 Novell, Inc (http://www.novell.com)
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to
deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-//
-//
-
-using System;
-using System.Collections.Generic;
-using MonoDevelop.Projects.Ambience;
-
-namespace CSharpBinding
-{
-
-
- public class TypeNameResolver: ITypeNameResolver
- {
- Dictionary<string,string> names = new Dictionary<string,string>
();
-
- public TypeNameResolver ()
- {
- }
-
- public void AddName (string name, string resolved)
- {
- names [name] = resolved;
- }
-
- public string ResolveName (string typeName)
- {
- // Resolve complete class names (aliases replace
complete class names)
- string res;
- if (names.TryGetValue (typeName, out res))
- return res;
-
- // Try replacing the namespace
-
- int i = typeName.LastIndexOf ('.');
- if (i == -1)
- return typeName;
-
- string ns = typeName.Substring (0, i);
-
- if (names.TryGetValue (ns, out res)) {
- if (res.Length > 0)
- return res + "." + typeName.Substring
(i+1);
- else
- return typeName.Substring (i+1);
- }
- else
- return typeName;
- }
- }
-}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches