This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
CsmCompletionExpression constExp = null; // possibly assign constant into this exp
String kwdType = CCTokenContext.isType(tokenID) ? curTokenText : null; // keyword constant type (used in conversions)
if (tokenID == null) { // invalid token-id
// clear stack on absent token or prerpocessor token
if (tokenID == null || tokenID.getCategory() == CCTokenContext.CPP) {
errorState = true;
} else { // valid token-id
}
public int eot(int offset) {
if (lastValidTokenID != null) {
// if space or comment occurs as last token
// add empty variable to save last position
switch (lastValidTokenID.getNumericID()) {
case CCTokenContext.WHITESPACE_ID:
case CCTokenContext.LINE_COMMENT_ID:
case CCTokenContext.BLOCK_COMMENT_ID:
pushExp(CsmCompletionExpression.createEmptyVariable(
bufferStartPos + bufferOffsetDelta + offset));
break;
// Check for joins
boolean reScan = true;
while (reScan) {