public Empty Visit(DekiScriptAccess expr, StringBuilder state) { expr.Prefix.VisitWith(this, state); DekiScriptString index = expr.Index as DekiScriptString; if ((index != null) && DekiScriptParser.IsIdentifier(index.Value)) { state.Append("."); state.Append(index.Value); } else { state.Append("["); expr.Index.VisitWith(this, state); state.Append("]"); } return(Empty.Value); }
public Empty Visit(DekiScriptString expr, StringBuilder state) { state.Append(expr.Value.QuoteString()); return(Empty.Value); }