Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@182 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
24 changed files with 3430 additions and 3443 deletions
@ -1,8 +1,25 @@
@@ -1,8 +1,25 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00 |
||||
# SharpDevelop 2.0.0.1 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.NRefactory", "Project\NRefactory.csproj", "{3a9ae6aa-bc07-4a2f-972c-581e3ae2f195}" |
||||
# Visual Studio 2005 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactory", "Project\NRefactory.csproj", "{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}" |
||||
EndProject |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.NRefactory.Tests", "Test\NRefactoryTests.csproj", "{870115dd-960a-4406-a6b9-600bcdc36a03}" |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NRefactoryTests", "Test\NRefactoryTests.csproj", "{870115DD-960A-4406-A6B9-600BCDC36A03}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Any CPU = Debug|Any CPU |
||||
Release|Any CPU = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{3A9AE6AA-BC07-4A2F-972C-581E3AE2F195}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{870115DD-960A-4406-A6B9-600BCDC36A03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{870115DD-960A-4406-A6B9-600BCDC36A03}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{870115DD-960A-4406-A6B9-600BCDC36A03}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
{870115DD-960A-4406-A6B9-600BCDC36A03}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
EndGlobal |
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,110 +0,0 @@
@@ -1,110 +0,0 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: Omnibrain |
||||
* Date: 08.09.2004 |
||||
* Time: 22:57 |
||||
* |
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||
*/ |
||||
|
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.IO; |
||||
using System.Collections; |
||||
using System.Collections.Specialized; |
||||
|
||||
using ICSharpCode.NRefactory.Parser; |
||||
using ICSharpCode.NRefactory.Parser.AST; |
||||
|
||||
namespace ICSharpCode.NRefactory |
||||
{ |
||||
/// <summary>
|
||||
/// Description of Main.
|
||||
/// </summary>
|
||||
public class MainClass |
||||
{ |
||||
public static ArrayList SearchDirectory(string directory, string filemask) |
||||
{ |
||||
return SearchDirectory(directory, filemask, true); |
||||
} |
||||
|
||||
public static ArrayList SearchDirectory(string directory, string filemask, bool searchSubdirectories) |
||||
{ |
||||
ArrayList collection = new ArrayList(); |
||||
SearchDirectory(directory, filemask, collection, searchSubdirectories); |
||||
return collection; |
||||
} |
||||
|
||||
/// <summary>
|
||||
/// Finds all files which are valid to the mask <code>filemask</code> in the path
|
||||
/// <code>directory</code> and all subdirectories (if searchSubdirectories
|
||||
/// is true. The found files are added to the ArrayList
|
||||
/// <code>collection</code>.
|
||||
/// </summary>
|
||||
static void SearchDirectory(string directory, string filemask, ArrayList collection, bool searchSubdirectories) |
||||
{ |
||||
try { |
||||
string[] file = Directory.GetFiles(directory, filemask); |
||||
foreach (string f in file) { |
||||
collection.Add(f); |
||||
} |
||||
|
||||
if (searchSubdirectories) { |
||||
string[] dir = Directory.GetDirectories(directory); |
||||
foreach (string d in dir) { |
||||
try { |
||||
SearchDirectory(d, filemask, collection, searchSubdirectories); |
||||
} catch (Exception) {} |
||||
} |
||||
} |
||||
} catch (Exception) { |
||||
} |
||||
} |
||||
|
||||
public static void Main(string[] args) |
||||
{ |
||||
// new ICSharpCode.NRefactory.Tests.AST.ReDimStatementTests().VBNetReDimStatementTest();
|
||||
// string program = @"
|
||||
//Public Class IMyIntern
|
||||
// Public Shared Sub Main()
|
||||
// End
|
||||
// End Sub
|
||||
//End Class
|
||||
//";
|
||||
// string program = @"
|
||||
//class MyTestClass
|
||||
//{
|
||||
// public static void A()
|
||||
// {
|
||||
// int**** xPtr = new int****[5];
|
||||
// }
|
||||
//}
|
||||
//";
|
||||
//
|
||||
// IParser parser = ParserFactory.CreateParser(SupportedLanguages.VBNet, new StringReader(program));
|
||||
// parser.Parse();
|
||||
// Console.WriteLine(parser.CompilationUnit.Children[0].Children[0]);
|
||||
// if (parser.Errors.ErrorOutput.Length > 0) {
|
||||
// Console.WriteLine(parser.Errors.ErrorOutput);
|
||||
// Console.ReadLine();
|
||||
// }
|
||||
//
|
||||
// string searchPath = @"C:\Programme\Microsoft.NET\SDK\v1.1"; //Path.GetFullPath(Application.StartupPath + @"\..\..\..\..");
|
||||
// ArrayList files = SearchDirectory(searchPath, "*.vb", true);
|
||||
// ArrayList defs = new ArrayList();
|
||||
// long oldSet = Environment.WorkingSet;
|
||||
//
|
||||
// DateTime start = DateTime.Now;
|
||||
// foreach (string str in files) {
|
||||
// IParser parser = ParserFactory.CreateParser(str);
|
||||
// parser.Parse();
|
||||
// if (parser.Errors.ErrorOutput.Length > 0) {
|
||||
// Console.WriteLine(str);
|
||||
// Console.WriteLine(parser.Errors.ErrorOutput);
|
||||
// }
|
||||
// }
|
||||
// Console.WriteLine("Time: " + (DateTime.Now - start) + " memory : " + (Environment.WorkingSet - oldSet));
|
||||
new ICSharpCode.NRefactory.Tests.AST.ReDimStatementTests().VBNetReDimStatementTest(); |
||||
} |
||||
} |
||||
} |
@ -1,4 +1,13 @@
@@ -1,4 +1,13 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " /> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
||||
<StartAction>Program</StartAction> |
||||
<StartProgram>D:\Corsavy\SharpDevelop\bin\SharpDevelop.exe</StartProgram> |
||||
<StartArguments>D:\Corsavy\SharpDevelop\src\Libraries\NRefactory\NRefactory.sln</StartArguments> |
||||
<StartWorkingDirectory> |
||||
</StartWorkingDirectory> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' " /> |
||||
<PropertyGroup> |
||||
<LastOpenVersion>8.0.50215</LastOpenVersion> |
||||
</PropertyGroup> |
||||
</Project> |
Loading…
Reference in new issue