void CreateLocalMethod(string code) { method = new ScriptingLocalMethod(code); }
string GetLocalMethodCode(PythonResolverContext resolverContext) { ScriptingLocalMethod localMethod = new ScriptingLocalMethod(resolverContext.FileContent); int beginLine = resolverContext.ExpressionRegion.BeginLine; return localMethod.GetCode(beginLine); }