public int AddVariable (XslLocalVariable v) { if (variables == null) { variableNames = new ArrayList (); variables = new Hashtable (); } variables [v.Name] = v; int idx = variableNames.IndexOf (v.Name); if (idx >= 0) return idx; variableNames.Add (v.Name); return nextSlot++; }
public int AddVariable (XslLocalVariable v) { if (curVarScope == null) throw new XsltCompileException ("Not initialized variable", null, Input); return curVarScope.AddVariable (v); }