Skip to content

Commit 3544380

Browse files
committed
Backport fixed dangling javadoc
1 parent c8e4651 commit 3544380

File tree

1 file changed

+15
-15
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ast

1 file changed

+15
-15
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ast/Validator.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -102,9 +102,9 @@ final class Validator implements SSTreeVisitor<Void> {
102102
private Validator() {
103103
}
104104

105-
//////////////////////////////
105+
/*-
106106
// ModTy validation
107-
//////////////////////////////
107+
*/
108108

109109
// Equivalent of _PyAST_Validate - entry point of the validation
110110
static void validateMod(ModTy mod) {
@@ -137,9 +137,9 @@ public Void visit(ModTy.FunctionType node) {
137137
return null;
138138
}
139139

140-
//////////////////////////////
140+
/*-
141141
// StmtTy validation
142-
//////////////////////////////
142+
*/
143143

144144
// Equivalent of validate_stmt
145145
private void validateStmt(StmtTy stmt) {
@@ -399,9 +399,9 @@ public Void visit(StmtTy.Continue node) {
399399
return null;
400400
}
401401

402-
//////////////////////////////
402+
/*-
403403
// ExprTy validation
404-
//////////////////////////////
404+
*/
405405

406406
// Equivalent of validate_expr
407407
private void validateExpr(ExprTy expr, ExprContextTy context) {
@@ -667,9 +667,9 @@ public Void visit(ExprTy.Name node) {
667667
return null;
668668
}
669669

670-
//////////////////////////////
670+
/*-
671671
// PatternTy validation
672-
//////////////////////////////
672+
*/
673673

674674
boolean isStarPatternOk;
675675

@@ -871,9 +871,9 @@ public Void visit(MatchCaseTy node) {
871871
return null;
872872
}
873873

874-
//////////////////////////////
874+
/*-
875875
// Other visitors
876-
//////////////////////////////
876+
*/
877877

878878
@Override
879879
public Void visit(ComprehensionTy node) {
@@ -948,9 +948,9 @@ public Void visit(TypeIgnoreTy.TypeIgnore node) {
948948
return null;
949949
}
950950

951-
//////////////////////////////
951+
/*-
952952
// Validation of sequences
953-
//////////////////////////////
953+
*/
954954

955955
// Equivalent of validate_stmts
956956
private void validateStmts(StmtTy[] stmts) {
@@ -1039,9 +1039,9 @@ private void validateComprehension(ComprehensionTy[] generators) {
10391039
}
10401040
}
10411041

1042-
//////////////////////////////
1042+
/*-
10431043
// Helpers
1044-
//////////////////////////////
1044+
*/
10451045

10461046
// Equivalent of asdl_seq_LEN
10471047
private static int seqLen(Object[] seq) {

0 commit comments

Comments
 (0)