private void EmitUsingNamespaces(ILGenerator il){
if (this.body.Engine.GenerateDebugInfo){
ScriptObject ns = this.enclosingScope;
while (ns != null){
if (ns is PackageScope)
il.UsingNamespace(((PackageScope)ns).name);
else if (ns is WrappedNamespace && !((WrappedNamespace)ns).name.Equals(""))
il.UsingNamespace(((WrappedNamespace)ns).name);
ns = ns.GetParent();
}
}
}