Browse Source

added some constructors.

newNRvisualizers
Mike Krüger 15 years ago
parent
commit
77d54ee040
  1. 16
      ICSharpCode.NRefactory/TypeSystem/DomRegion.cs

16
ICSharpCode.NRefactory/TypeSystem/DomRegion.cs

@ -72,6 +72,10 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -72,6 +72,10 @@ namespace ICSharpCode.NRefactory.TypeSystem
}
}
public DomRegion (int beginLine, int beginColumn, int endLine, int endColumn) : this (null, beginLine, beginColumn, endLine, endColumn)
{
}
public DomRegion(string fileName, int beginLine, int beginColumn, int endLine, int endColumn)
{
this.fileName = fileName;
@ -81,6 +85,10 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -81,6 +85,10 @@ namespace ICSharpCode.NRefactory.TypeSystem
this.endColumn = endColumn;
}
public DomRegion (int beginLine, int beginColumn) : this (null, beginLine, beginColumn)
{
}
public DomRegion (string fileName, int beginLine, int beginColumn)
{
this.fileName = fileName;
@ -90,6 +98,10 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -90,6 +98,10 @@ namespace ICSharpCode.NRefactory.TypeSystem
this.endColumn = -1;
}
public DomRegion (AstLocation begin, AstLocation end) : this (null, begin, end)
{
}
public DomRegion (string fileName, AstLocation begin, AstLocation end)
{
this.fileName = fileName;
@ -99,6 +111,10 @@ namespace ICSharpCode.NRefactory.TypeSystem @@ -99,6 +111,10 @@ namespace ICSharpCode.NRefactory.TypeSystem
this.endColumn = end.Column;
}
public DomRegion (AstLocation begin) : this (null, begin)
{
}
public DomRegion (string fileName, AstLocation begin)
{
this.fileName = fileName;

Loading…
Cancel
Save