src/share/classes/com/sun/tools/javac/parser/JavacParser.java

changeset 3315
6f0746b6de9f
parent 3074
ca136b17b9f4
child 3446
e468915bad3a
equal deleted inserted replaced
3314:7b6c1bfeeb03 3315:6f0746b6de9f
1 /* 1 /*
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
583 /* ---------- parsing -------------- */ 583 /* ---------- parsing -------------- */
584 584
585 /** 585 /**
586 * Ident = IDENTIFIER 586 * Ident = IDENTIFIER
587 */ 587 */
588 Name ident() { 588 public Name ident() {
589 if (token.kind == IDENTIFIER) { 589 if (token.kind == IDENTIFIER) {
590 Name name = token.name(); 590 Name name = token.name();
591 nextToken(); 591 nextToken();
592 return name; 592 return name;
593 } else if (token.kind == ASSERT) { 593 } else if (token.kind == ASSERT) {

mercurial