Browse Source
Fixed exception when the opening refactoring menu on parameters. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4211 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
7 changed files with 23 additions and 85 deletions
@ -1,67 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using ICSharpCode.SharpDevelop.Dom; |
|
||||||
using ICSharpCode.SharpDevelop.Project; |
|
||||||
|
|
||||||
namespace ICSharpCode.XmlEditor |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Parser that does nothing except return empty compilation unit
|
|
||||||
/// classes so the XmlFoldingStrategy is executed.
|
|
||||||
/// </summary>
|
|
||||||
public class Parser : IParser |
|
||||||
{ |
|
||||||
public Parser() |
|
||||||
{ |
|
||||||
} |
|
||||||
|
|
||||||
#region IParser interface
|
|
||||||
public string[] LexerTags { |
|
||||||
get { |
|
||||||
return null; |
|
||||||
} |
|
||||||
set { |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public LanguageProperties Language { |
|
||||||
get { |
|
||||||
return null; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public IExpressionFinder CreateExpressionFinder(string fileName) |
|
||||||
{ |
|
||||||
return null; |
|
||||||
} |
|
||||||
|
|
||||||
public IResolver CreateResolver() |
|
||||||
{ |
|
||||||
return null; |
|
||||||
} |
|
||||||
|
|
||||||
public ICompilationUnit Parse(IProjectContent projectContent, string fileName, string fileContent) |
|
||||||
{ |
|
||||||
DefaultCompilationUnit compilationUnit = new DefaultCompilationUnit(projectContent); |
|
||||||
compilationUnit.FileName = fileName; |
|
||||||
return compilationUnit; |
|
||||||
} |
|
||||||
|
|
||||||
public bool CanParse(IProject project) |
|
||||||
{ |
|
||||||
return false; |
|
||||||
} |
|
||||||
|
|
||||||
public bool CanParse(string fileName) |
|
||||||
{ |
|
||||||
return XmlDisplayBinding.IsFileNameHandled(fileName); |
|
||||||
} |
|
||||||
#endregion
|
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue