I'm looking at writing a C# parser for IntelliJ. The reason is I need a proper C# editor on OSX. I could live with C# 2.0. My initial thought is to take the java implementations and just copy them, and this is probably what I will do at first. However, that leaves me with the classic fork problems: as the java code is updated, I have to manually update the C# code (ok git will help a lot, but I've so been-there-done-that).
My quesion is this:
How much copying do I need to do? Or, "where do I stop?"
Would I be correct in thinking that if I generate PsiClasses and PsiLocalVariables etc, that inspections such as ClassNamePrefixedWithPackageNameInspection will work on the C# source?