langtools/src/share/classes/com/sun/tools/javac/parser/JavacParser.java
changeset 8032 e1aa25ccdabb
parent 7636 030f141aa32b
child 8033 13d9c18b8fa1
equal deleted inserted replaced
8031:d5fe2c1cecfc 8032:e1aa25ccdabb
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, 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
   545             t = F.at(pos).Literal(
   545             t = F.at(pos).Literal(
   546                 TypeTags.BOT,
   546                 TypeTags.BOT,
   547                 null);
   547                 null);
   548             break;
   548             break;
   549         default:
   549         default:
   550             assert false;
   550             Assert.error();
   551         }
   551         }
   552         if (t == errorTree)
   552         if (t == errorTree)
   553             t = F.at(pos).Erroneous();
   553             t = F.at(pos).Erroneous();
   554         storeEnd(t, S.endPos());
   554         storeEnd(t, S.endPos());
   555         S.nextToken();
   555         S.nextToken();
   722                 top--;
   722                 top--;
   723                 topOp = opStack[top];
   723                 topOp = opStack[top];
   724                 topOpPos = posStack[top];
   724                 topOpPos = posStack[top];
   725             }
   725             }
   726         }
   726         }
   727         assert top == 0;
   727         Assert.check(top == 0);
   728         t = odStack[0];
   728         t = odStack[0];
   729 
   729 
   730         if (t.getTag() == JCTree.PLUS) {
   730         if (t.getTag() == JCTree.PLUS) {
   731             StringBuffer buf = foldStrings(t);
   731             StringBuffer buf = foldStrings(t);
   732             if (buf != null) {
   732             if (buf != null) {