mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
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:
parent
6d91a3eb7b
commit
0fc47e99d2
43 changed files with 5204 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue