+ public MethodEntry DefineMethod (CompileUnitEntry comp_unit, int token,
+ ScopeVariable[] scope_vars, LocalVariableEntry[] locals,
+ LineNumberEntry[] lines, CodeBlockEntry[] code_blocks,
+ string real_name, MethodEntry.Flags flags,
+ int namespace_id)
+ {
+ if (reader != null)
+ throw new InvalidOperationException ();
+
+ MethodEntry method = new MethodEntry (
+ this, comp_unit, token, scope_vars, locals, lines, code_blocks,
+ real_name, flags, namespace_id);
+ AddMethod (method);
+ return method;
+ }
+