public void GetObjectData(SerializationInfo info, StreamingContext context) { Contract.RequiresNotNull(info, "info"); info.AddValue("symbolName", SymbolTable.IdToString(this)); }
public static void ThrowUnboundLocalError(SymbolId name) { if (Assert != null) { Assert(False, "variable not initialized", Ast.Variable.UnGenSym(name)); } else { throw new UnboundLocalException(string.Format("local variable '{0}' referenced before assignment", SymbolTable.IdToString(name))); } }
/// <summary> /// Called when a lookup has failed and an exception should be thrown. Enables the /// language context to throw the appropriate exception for their language when /// name lookup fails. /// </summary> protected internal virtual Exception MissingName(SymbolId name) { return(new MissingMemberException(String.Format(CultureInfo.CurrentCulture, Resources.NameNotDefined, SymbolTable.IdToString(name)))); }
protected override object GetKey() { return(SymbolTable.IdToString(_idDict.GetExtraKeys()[_curIndex])); }
public override string ToString() { return(SymbolTable.IdToString(this)); }
protected override object GetKey() { return(SymbolTable.IdToString(_backing.Current.Key)); }