8266666: Implementation for snippets

Co-authored-by: Jonathan Gibbons <jjg@openjdk.org>
Co-authored-by: Hannes Wallnöfer <hannesw@openjdk.org>
Reviewed-by: jjg
This commit is contained in:
Pavel Rappo 2021-09-21 15:53:35 +00:00
parent 6d91a3eb7b
commit 0fc47e99d2
43 changed files with 5204 additions and 25 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -587,6 +587,18 @@ public class DocCommentTester {
return null;
}
@Override
public Void visitSnippet(SnippetTree node, Void p) {
header(node);
indent(+1);
print("attributes", node.getAttributes());
print("body", node.getBody());
indent(-1);
indent();
out.println("]");
return null;
}
public Void visitStartElement(StartElementTree node, Void p) {
header(node);
indent(+1);