Example #1
0
 public override LazyList <string> Visit(StrLitNode node, Precedence parentPrecedence)
 {
     Contracts.AssertValue(node);
     return(LazyList <string> .Of(
                "\"",
                CharacterUtils.ExcelEscapeString(node.Value),
                "\""));
 }
Example #2
0
        internal static IEnumerable <KeyValuePair <string, DType> > GetColumnNameStringSuggestions(DType scopeType)
        {
            Contracts.AssertValid(scopeType);

            foreach (var name in scopeType.GetNames(DPath.Root))
            {
                yield return(new KeyValuePair <string, DType>(("\"" + CharacterUtils.ExcelEscapeString(name.Name.Value) + "\""), name.Type));
            }
        }