diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-03-02 05:14:21 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-03-02 05:14:21 +0300 |
commit | 327831bc3fa335454f928b43a4b6d8a10809b1ac (patch) | |
tree | 1ca0e30fd72b14a6d75960da43d91f23a7906570 /main/src/addins/VBNetBinding | |
parent | 2f14ac1e43c4a5a6fd614ec04a6f9b283deca5f9 (diff) |
* Parser/DomParser.cs: Use getter and setter modifiers.
svn path=/trunk/monodevelop/; revision=152772
Diffstat (limited to 'main/src/addins/VBNetBinding')
-rw-r--r-- | main/src/addins/VBNetBinding/ChangeLog | 4 | ||||
-rw-r--r-- | main/src/addins/VBNetBinding/Parser/DomParser.cs | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/main/src/addins/VBNetBinding/ChangeLog b/main/src/addins/VBNetBinding/ChangeLog index 90cb7a4064..6503b5480c 100644 --- a/main/src/addins/VBNetBinding/ChangeLog +++ b/main/src/addins/VBNetBinding/ChangeLog @@ -1,3 +1,7 @@ +2010-03-01 Michael Hutchinson <mhutchinson@novell.com> + + * Parser/DomParser.cs: Use getter and setter modifiers. + 2010-02-18 Lluis Sanchez Gual <lluis@novell.com> * VBNetBinding.csproj: Flush. diff --git a/main/src/addins/VBNetBinding/Parser/DomParser.cs b/main/src/addins/VBNetBinding/Parser/DomParser.cs index 597b61aea4..2dcbf0fb3e 100644 --- a/main/src/addins/VBNetBinding/Parser/DomParser.cs +++ b/main/src/addins/VBNetBinding/Parser/DomParser.cs @@ -221,8 +221,15 @@ namespace MonoDevelop.VBNetBinding Debug.Assert (currentType.Count > 0); DomType type = currentType.Peek (); + var getterModifier = (Modifiers)propertyDeclaration.Modifier; + var setterModifier = (Modifiers)propertyDeclaration.Modifier; + if (propertyDeclaration.HasGetRegion && propertyDeclaration.GetRegion.Modifier != ICSharpCode.NRefactory.Ast.Modifiers.None) + getterModifier = (Modifiers) propertyDeclaration.GetRegion.Modifier; + if (propertyDeclaration.HasSetRegion && propertyDeclaration.SetRegion.Modifier != ICSharpCode.NRefactory.Ast.Modifiers.None) + setterModifier = (Modifiers) propertyDeclaration.SetRegion.Modifier; + type.Add (new DomProperty (propertyDeclaration.Name, - (Modifiers)propertyDeclaration.Modifier, + getterModifier, setterModifier, new DomLocation (propertyDeclaration.StartLocation.Line, propertyDeclaration.StartLocation.Column), TranslateRegion (propertyDeclaration.BodyStart, propertyDeclaration.BodyEnd), TranslateTypeReference (propertyDeclaration.TypeReference)));
|