null, true)); this.emitter.emit(new SequenceStartEvent(tAlias, node.getTag().getValue(), implicitS, null, null, seqNode.getFlowStyle())); List<Node> list = seqNode.getValue(); for (Node item : list) {
@Override public boolean isJsonStyle() { return !((SequenceNode) getYamlNode()).getFlowStyle(); } }
private SequenceNode cloneSequenceNode(SequenceNode node, Map<String, String> parameters) { List<Node> nodes = new ArrayList<Node>(); for (Node item : node.getValue()) { nodes.add(cloneNode(item, parameters)); } return new SequenceNode(node.getTag(), nodes, node.getFlowStyle()); }
private SequenceNode cloneSequenceNode(SequenceNode node, Map<String, String> parameters) { List<Node> nodes = new ArrayList<Node>(); for (Node item : node.getValue()) { nodes.add(cloneNode(item, parameters)); } return new SequenceNode(node.getTag(), nodes, node.getFlowStyle()); }
public static ReconcileProblemImpl missingProperty(String msg, IDocument doc, Node parent, Node map) { DocumentRegion underline = NodeUtil.region(doc, map); if (parent instanceof MappingNode) { for (NodeTuple prop : ((MappingNode) parent).getValue()) { if (prop.getValueNode()==map) { underline = NodeUtil.region(doc, prop.getKeyNode()); } } } else if (parent instanceof SequenceNode) { Boolean flowStyle = ((SequenceNode) parent).getFlowStyle(); if (flowStyle!=null && !flowStyle) { Mark nodeStart = map.getStartMark(); underline = new DocumentRegion(doc, 0, nodeStart.getIndex()); underline = underline.trimEnd(); if (underline.endsWith("-")) { underline = underline.subSequence(underline.length()-1, underline.length()); } } } else { underline = underline.trimEnd().textAtEnd(1); } return problem(MISSING_PROPERTY, msg, underline); }
null, true)); this.emitter.emit(new SequenceStartEvent(tAlias, node.getTag().getValue(), implicitS, null, null, seqNode.getFlowStyle())); List<Node> list = seqNode.getValue(); for (Node item : list) {
null, true)); this.emitter.emit(new SequenceStartEvent(tAlias, node.getTag().getValue(), implicitS, null, null, seqNode.getFlowStyle())); List<Node> list = seqNode.getValue(); for (Node item : list) {
null, true)); this.emitter.emit(new SequenceStartEvent(tAlias, node.getTag().getValue(), implicitS, null, null, seqNode.getFlowStyle())); List<Node> list = seqNode.getValue(); for (Node item : list) {