Author: lluis
Date: 2005-12-13 09:40:01 -0500 (Tue, 13 Dec 2005)
New Revision: 54291
Modified:
trunk/monodevelop/Extras/VBNetBinding/ChangeLog
trunk/monodevelop/Extras/VBNetBinding/Parser/Parser.cs
trunk/monodevelop/Extras/VBNetBinding/VBLanguageBinding.cs
trunk/monodevelop/Extras/VBNetBinding/templates/EmptyVBFile.xft.xml
Log:
2005-12-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* Parser/Parser.cs: Track changes in the api.
* VBLanguageBinding.cs: Implemented the new methods in
IDotNetLanguageBinding.
Modified: trunk/monodevelop/Extras/VBNetBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/VBNetBinding/ChangeLog 2005-12-13 14:39:47 UTC
(rev 54290)
+++ trunk/monodevelop/Extras/VBNetBinding/ChangeLog 2005-12-13 14:40:01 UTC
(rev 54291)
@@ -1,3 +1,9 @@
+2005-12-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * Parser/Parser.cs: Track changes in the api.
+ * VBLanguageBinding.cs: Implemented the new methods in
+ IDotNetLanguageBinding.
+
2005-10-11 John Luke <[EMAIL PROTECTED]>
* Makefile.am: remove SharpAssembly reference
Modified: trunk/monodevelop/Extras/VBNetBinding/Parser/Parser.cs
===================================================================
--- trunk/monodevelop/Extras/VBNetBinding/Parser/Parser.cs 2005-12-13
14:39:47 UTC (rev 54290)
+++ trunk/monodevelop/Extras/VBNetBinding/Parser/Parser.cs 2005-12-13
14:40:01 UTC (rev 54291)
@@ -45,11 +45,6 @@
return System.IO.Path.GetExtension (fileName).ToLower
() == ".vb";
}
- public bool CanParse (Project project)
- {
- return project.ProjectType == "VBNET";
- }
-
void RetrieveRegions(CompilationUnit cu, SpecialTracker tracker)
{
for (int i = 0; i < tracker.CurrentSpecials.Count; ++i)
{
Modified: trunk/monodevelop/Extras/VBNetBinding/VBLanguageBinding.cs
===================================================================
--- trunk/monodevelop/Extras/VBNetBinding/VBLanguageBinding.cs 2005-12-13
14:39:47 UTC (rev 54290)
+++ trunk/monodevelop/Extras/VBNetBinding/VBLanguageBinding.cs 2005-12-13
14:40:01 UTC (rev 54291)
@@ -9,18 +9,25 @@
using System.IO;
using System.Collections;
using System.Diagnostics;
-using System.Xml;
+using System.Xml;
+using Microsoft.VisualBasic;
+using System.CodeDom.Compiler;
using MonoDevelop.Projects;
using MonoDevelop.Core;
+using MonoDevelop.Projects.Parser;
+using MonoDevelop.Projects.CodeGeneration;
+using VBBinding.Parser;
namespace VBBinding
{
- public class VBLanguageBinding : ILanguageBinding
+ public class VBLanguageBinding : IDotNetLanguageBinding
{
public const string LanguageName = "VBNet";
- VBBindingCompilerServices compilerServices = new
VBBindingCompilerServices();
+ VBBindingCompilerServices compilerServices = new
VBBindingCompilerServices();
+ VBCodeProvider provider;
+ TParser parser = new TParser ();
public string Language {
get {
@@ -28,7 +35,7 @@
}
}
- public bool CanCompile(string fileName)
+ public bool IsSourceCodeFile (string fileName)
{
Debug.Assert(compilerServices != null);
return compilerServices.CanCompile(fileName);
@@ -54,5 +61,25 @@
{
get { return "'"; }
}
+
+ public CodeDomProvider GetCodeDomProvider ()
+ {
+ if (provider == null)
+ provider = new VBCodeProvider ();
+ return provider;
+ }
+
+ public string GetFileName (string baseName)
+ {
+ return baseName + ".vb";
+ }
+
+ public IParser Parser {
+ get { return parser; }
+ }
+
+ public IRefactorer Refactorer {
+ get { return null; }
+ }
}
}
Modified: trunk/monodevelop/Extras/VBNetBinding/templates/EmptyVBFile.xft.xml
===================================================================
--- trunk/monodevelop/Extras/VBNetBinding/templates/EmptyVBFile.xft.xml
2005-12-13 14:39:47 UTC (rev 54290)
+++ trunk/monodevelop/Extras/VBNetBinding/templates/EmptyVBFile.xft.xml
2005-12-13 14:40:01 UTC (rev 54291)
@@ -4,7 +4,7 @@
<TemplateConfiguration>
<_Name>Empty File</_Name>
<Icon>res:VB.File.EmptyFile</Icon>
- <Category>VBNet</Category>
+ <Category>General</Category>
<LanguageName>VBNet</LanguageName>
<_Description>Creates an empty VB.Net file.</_Description>
</TemplateConfiguration>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches