Пример #1
0
 protected override BaseNode VisitString(StringNode node)
 {
     if (node.RequiresExpansion)
     {
         var newValue = node.StringValue;
         foreach (var p in node.EmbeddedProperties)
         {
             var mapped = _properties(p);
             if (mapped != null)
             {
                 newValue = newValue.Replace(p, mapped);
             }
         }
         if (!ReferenceEquals(newValue, node.StringValue))
         {
             node = new StringNode(newValue);
         }
     }
     return(node);
 }
Пример #2
0
 protected override BaseNode VisitString(StringNode node)
 {
     _currentResult = node.AsBoolean;
     return(node);
 }
Пример #3
0
 protected virtual BaseNode VisitString(StringNode node)
 {
     return(node);
 }