[MonoDevelop] CSharpCodeGenerator.AddGlobalNamespaceImport vs local
Adam Connelly
adam.rpconnelly at gmail.com
Fri Jun 22 07:10:44 UTC 2012
Thanks mike.
That's what I thought, but since it doesn't seem to, I thought I'd double
check.
Anyhow, I'll go through that tutorial and see what I can do.
On a related note - once I've got the code working I'll need to add the new
options to the policy dialog. Is there a way for me to do that on my mac,
or do I really need to do that part on a Linux machine?
Cheers,
Adam
On 21 Jun 2012, at 22:27, "Mike Krüger" <mkrueger at xamarin.com> wrote:
Hi
Forget about both - try to do all document changes with the ast of the file.
See:
http://mikemdblog.blogspot.de/2012/04/how-to-write-c-issue-provider.html
Other than that the local import should add the using inside the namespace,
if any.
Regards
Mike
Hi,
Can anyone tell me what the difference is between AddGlobalNamespaceImport
and AddLocalNamespaceImport? So far I've only seen a situation where
AddGlobalNamespaceImport is called.
If I alter the code to call AddLocalNamespaceImport instead (just to see
what it produces), it seems to place the using statement in the same place,
but it indents it to the level as though it was inside the namespace.
If possible, could someone send me a quick example of what each should
produce?
The reason I'm asking about this is that I'm wanting to add to the C#
policy so that you can get it to conform to StyleCop rules since that's
what I normally use.
Cheers,
Adam
_______________________________________________
Monodevelop-list mailing
listMonodevelop-list at lists.ximian.comhttp://lists.ximian.com/mailman/listinfo/monodevelop-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120622/457f81fb/attachment-0001.html>
More information about the Monodevelop-list
mailing list