result = new NodeDepth(parseSelectorName(tokens));
tokens.consume(")");
} else if (tokens.canConsume("PATH", "(")) {
if (tokens.canConsume(")")) {
if (source instanceof Selector) {
return new NodePath(((Selector)source).getName());
}
String msg = GraphI18n.functionIsAmbiguous.text("PATH()", pos.getLine(), pos.getColumn());
throw new ParsingException(pos, msg);
}
result = new NodePath(parseSelectorName(tokens));
tokens.consume(")");
} else {
result = parsePropertyValue(tokens, typeSystem, source);
}