コード例 #1
0
 string GetFieldName(string[] memberNames)
 {
     if (memberNames.Length > 1)
     {
         if (PythonSelfResolver.IsSelfExpression(memberNames[0]))
         {
             return(memberNames[1]);
         }
     }
     return(null);
 }
コード例 #2
0
        IClass FindClass(string className)
        {
            IClass c = FindClassFromClassResolver(className);

            if (c != null)
            {
                return(c);
            }
            if (PythonSelfResolver.IsSelfExpression(className))
            {
                return(FindClassFromSelfResolver());
            }
            return(FindClassFromLocalVariableResolver(className));
        }
コード例 #3
0
		void CreatePythonSelfResolver()
		{
			resolver = new PythonSelfResolver();
			expression = new ExpressionResult("self");
		}
コード例 #4
0
		void CreatePythonSelfResolver()
		{
			resolver = new PythonSelfResolver();
		}