Posted 18 years ago
by Jake Pearson
-
Software Developer,
Alion Science and Technology
![Avatar](https://secure.gravatar.com/avatar/19334e200c76323e56467479c831e3ca.jpg?s=64&d=identicon&r=g)
Hi,
I have started using 4.0, and it seems like a great upgrade. My users use C#, but I only have them write the inside of functions. For example: they might have a syntax editor where they put in some code like this:Then I put some code around it to make it valid C# like this:
Using the default CSharpSyntaxLanguage, the first example above is not considered valid. My guess is that I want to tell the language that I only want to parse using the AST nodes below BlockStatement, but I don't know how to do that. Any idea?
thanks,
Jake
I have started using 4.0, and it seems like a great upgrade. My users use C#, but I only have them write the inside of functions. For example: they might have a syntax editor where they put in some code like this:
MessageBox.Show();
public void BeginningEffect()
{
MessageBox.Show()
}
thanks,
Jake