//----------------------------------------------------------------------------- // Parse a single statement or local var decl (we can't tell which yet) // Note that may be statement may be a block (which is just fine) // for a construct like 'int x = 3' (decl & assignment), we'll yeild // both s & v. Else the out params will be null if we don't have them. //----------------------------------------------------------------------------- protected void ParseStatementOrLocal(out Statement s, out LocalVarDecl v) { // Wrap the worker to ensure that we have proper line number info FileRange f = BeginRange(); // Do the real work ParseStatementOrLocal_Helper(out s, out v); if (s != null) { s.SetLocation(EndRange(f)); } }