Browse Source
- replaced with IVBNetOptionProvider - XDocument, XElement, XComment, XProcessingDirective, XCData will be correctly resolved git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@6191 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
20 changed files with 1930 additions and 1607 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,63 +0,0 @@
@@ -1,63 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom |
||||
{ |
||||
/// <summary>
|
||||
/// Description of DefaultOption.
|
||||
/// </summary>
|
||||
public class DefaultOption : AbstractFreezable, IOption |
||||
{ |
||||
OptionType type; |
||||
bool value; |
||||
DomRegion region; |
||||
|
||||
public DefaultOption(OptionType type) |
||||
: this(type, true) |
||||
{ |
||||
} |
||||
|
||||
public DefaultOption(OptionType type, bool value) |
||||
: this(type, value, DomRegion.Empty) |
||||
{ |
||||
} |
||||
|
||||
public DefaultOption(OptionType type, bool value, DomRegion region) |
||||
{ |
||||
this.type = type; |
||||
this.value = value; |
||||
this.region = region; |
||||
} |
||||
|
||||
protected override void FreezeInternal() |
||||
{ |
||||
base.FreezeInternal(); |
||||
} |
||||
|
||||
public DomRegion Region { |
||||
get { |
||||
return region; |
||||
} |
||||
} |
||||
|
||||
public OptionType Type { |
||||
get { |
||||
return type; |
||||
} |
||||
} |
||||
|
||||
public bool Value { |
||||
get { |
||||
if (type == OptionType.CompareBinary || type == OptionType.CompareText) |
||||
return true; |
||||
|
||||
return value; |
||||
} |
||||
} |
||||
} |
||||
} |
||||
@ -1,28 +0,0 @@
@@ -1,28 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom |
||||
{ |
||||
/// <summary>
|
||||
/// Description of IOption.
|
||||
/// </summary>
|
||||
public interface IOption : IFreezable |
||||
{ |
||||
DomRegion Region { |
||||
get; |
||||
} |
||||
|
||||
OptionType Type { |
||||
get; |
||||
} |
||||
|
||||
bool Value { |
||||
get; |
||||
} |
||||
} |
||||
} |
||||
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom |
||||
{ |
||||
public enum OptionType { |
||||
None = ICSharpCode.NRefactory.Ast.OptionType.None, |
||||
Explicit = ICSharpCode.NRefactory.Ast.OptionType.Explicit, |
||||
Strict = ICSharpCode.NRefactory.Ast.OptionType.Strict, |
||||
CompareBinary = ICSharpCode.NRefactory.Ast.OptionType.CompareBinary, |
||||
CompareText = ICSharpCode.NRefactory.Ast.OptionType.CompareText, |
||||
Infer = ICSharpCode.NRefactory.Ast.OptionType.Infer |
||||
} |
||||
} |
||||
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom.VBNet |
||||
{ |
||||
/// <summary>
|
||||
/// Description of IVBNetOptionProvider.
|
||||
/// </summary>
|
||||
public interface IVBNetOptionProvider |
||||
{ |
||||
bool? OptionInfer { get; } |
||||
bool? OptionStrict { get; } |
||||
bool? OptionExplicit { get; } |
||||
CompareKind? OptionCompare { get; } |
||||
} |
||||
|
||||
public enum CompareKind |
||||
{ |
||||
Binary, |
||||
Text |
||||
} |
||||
} |
||||
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="siegfriedpammer@gmail.com" />
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
using System; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Dom.VBNet |
||||
{ |
||||
/// <summary>
|
||||
/// Description of VBNetCompilationUnit.
|
||||
/// </summary>
|
||||
public class VBNetCompilationUnit : DefaultCompilationUnit, IVBNetOptionProvider |
||||
{ |
||||
IVBNetOptionProvider projectOptionProvider; |
||||
|
||||
public VBNetCompilationUnit(IProjectContent projectContent) |
||||
: base(projectContent) |
||||
{ |
||||
if (projectContent.Project is IVBNetOptionProvider) |
||||
projectOptionProvider = projectContent.Project as IVBNetOptionProvider; |
||||
else { |
||||
infer = false; |
||||
strict = false; |
||||
@explicit = true; |
||||
compare = CompareKind.Binary; |
||||
} |
||||
} |
||||
|
||||
bool? infer, strict, @explicit; |
||||
CompareKind? compare; |
||||
|
||||
public bool? OptionInfer { |
||||
get { return infer ?? projectOptionProvider.OptionInfer; } |
||||
set { infer = value; } |
||||
} |
||||
|
||||
public bool? OptionStrict { |
||||
get { return strict ?? projectOptionProvider.OptionStrict; } |
||||
set { strict = value; } |
||||
} |
||||
|
||||
public bool? OptionExplicit { |
||||
get { return @explicit ?? projectOptionProvider.OptionExplicit; } |
||||
set { @explicit = value; } |
||||
} |
||||
|
||||
public CompareKind? OptionCompare { |
||||
get { return compare ?? projectOptionProvider.OptionCompare; } |
||||
set { compare = value; } |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue