示例#1
0
        public static ExpressionNode Find(this ExpressionNode node, int offset)
        {
            //HACK: the length of IncompleteExpressionError is not usable, so go directly to its child
            node = (node as IncompleteExpressionError)?.IncompleteNode ?? node;

            return(node.ContainsOffset(offset) ? FindInternal(node, offset) : null);
        }
 public static ExpressionNode Find(this ExpressionNode node, int offset)
 {
     return(node.ContainsOffset(offset) ? FindInternal(node, offset) : null);
 }