private IDependencyResolverPolicy DoGetResolverPolicy(StringNode node)
 {
     return(new LiteralValueDependencyResolverPolicy <T>(node.Literal));
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="identifier">the identifier node representing the accessed object</param>
 /// <param name="index">the string node representing the accessed index</param>
 public IndexAccessorNode(IdentifierNode identifier, StringNode index)
     : base(GetPosition(identifier, index))
 {
     Add(identifier);
     Add(index);
 }
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="identifier">the identifier node representing the accessed object</param>
 /// <param name="index">the string node representing the accessed index</param>
 public IndexAccessorNode(IdentifierNode identifier, StringNode index)
     : base(GetPosition(identifier, index))
 {
     Add(identifier);
     Add(index);
 }