[MonoDevelop] Re: PropertyGetRegion/PropertySetRegion

John Luke john.luke at gmail.com
Fri Jun 10 17:46:04 EDT 2005


Hello,
Jacob Ilsø Christensen wrote:

>Hi.
>
>I have tried to fix this issue. I am not sure if this is the right
>place to do it. It seems to work like it should though. :-)
>
>  
>
This looks ok to check in as long as you also check the generated 
Parser.cs and make sure it is correct
and test it.

>/Jacob
>
>On 6/10/05, Jacob Ilsø Christensen <jacobilsoe at gmail.com> wrote:
>  
>
>>Hi.
>>
>>It seems that the StartRegion and EndRegion properties of the
>>PropertyGetRegion and PropertySetRegion classes are always (0, 0). Is
>>this a known issue or am I missing something?
>>
>>/Jacob
>>
>>    
>>
>>------------------------------------------------------------------------
>>
>>Index: Core/src/ICSharpCode.SharpRefactory/src/Parser/generated/cs.ATG
>>===================================================================
>>--- Core/src/ICSharpCode.SharpRefactory/src/Parser/generated/cs.ATG	(revision 2595)
>>+++ Core/src/ICSharpCode.SharpRefactory/src/Parser/generated/cs.ATG	(working copy)
>>@@ -1331,16 +1331,24 @@
>> (. Statement stmt = null; .)
>> =
>> 	ident /* "get" is not a keyword */
>>+	(. Point startLocation = t.Location; .)
>> 	(. if (t.val != "get") Error("get expected"); .)
>>-	( Block<out stmt> | ";" ) (. getBlock = new PropertyGetRegion((BlockStatement)stmt, attributes, m); .)
>>+	( Block<out stmt> | ";" )
>>+	(. getBlock = new PropertyGetRegion((BlockStatement)stmt, attributes, m); .)
>>+	(. getBlock.StartLocation = startLocation; .)
>>+	(. getBlock.EndLocation = t.Location; .)
>> .
>> 
>> SetAccessorDecl<out PropertySetRegion setBlock, ArrayList attributes, Modifier m>
>> (. Statement stmt = null; .)
>> =
>> 	ident /* "set" is not a keyword */
>>+	(. Point startLocation = t.Location; .)	
>> 	(. if (t.val != "set") Error("set expected"); .)
>>-	( Block<out stmt> | ";" ) (. setBlock = new PropertySetRegion((BlockStatement)stmt, attributes, m); .)
>>+	( Block<out stmt> | ";" )
>>+	(. setBlock = new PropertySetRegion((BlockStatement)stmt, attributes, m); .)
>>+	(. setBlock.StartLocation = startLocation; .)
>>+	(. setBlock.EndLocation = t.Location; .)
>> .
>> 
>> EventAccessorDecls<out EventAddRegion addBlock, out EventRemoveRegion removeBlock>
>>    
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Monodevelop-list mailing list
>>Monodevelop-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>    
>>



More information about the Monodevelop-list mailing list