private static int CompareVariables(PythonVariable left, PythonVariable right)
 {
     return(String.Compare(left.Name, right.Name));
 }
Example #2
0
 internal bool IsInitialized(PythonVariable /*!*/ variable)
 {
     return(_bits.Get(_variableIndices[variable] * 2 + 1));
 }
Example #3
0
 public abstract MSAst.Expression GetGlobal(MSAst.Expression globalContext, int arrayIndex, PythonVariable variable, PythonGlobal global);
Example #4
0
 private void SetInitialized(PythonVariable /*!*/ variable, bool value)
 {
     _bits.Set(_variableIndices[variable] * 2 + 1, value);
 }
Example #5
0
 internal bool IsAssigned(PythonVariable /*!*/ variable)
 {
     return(_bits.Get(_variableIndices[variable] * 2));
 }
Example #6
0
 private void SetAssigned(PythonVariable /*!*/ variable, bool value)
 {
     _bits.Set(_variableIndices[variable] * 2, value);
 }
Example #7
0
 private bool ReadBeforeInitialized(PythonVariable variable)
 {
     return(ReadBeforeInitializedVariables.Contains(variable));
 }
Example #8
0
 private bool ReadFromExtractedCode(PythonVariable variable)
 {
     return(_readBeforeInitialized.Contains(variable) &&
            _inputCollector._allReadVariables.Contains(variable));
 }
Example #9
0
 public static void AddVariable(this Parameter node, PythonAst ast, bool bindNames, PythonVariable variable)
 {
     if (bindNames)
     {
         ast.SetAttribute(node, Variable, variable);
     }
 }
Example #10
0
 public static void AddVariable(this Parameter node, PythonAst ast, bool bindNames, PythonVariable variable) {
     if (bindNames) {
         ast.SetAttribute(node, Variable, variable);
     }
 }