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.
TokenSequence<GroovyTokenId> ts = LexUtilities.getPositionedSequence(doc, startOffset);
if (ts != null) {
Token<GroovyTokenId> token = ts.token();
if (token != null && token.id() == GroovyTokenId.IDENTIFIER && TokenUtilities.textEquals(identifier, token.text())) {
if (token != null && token.id() == GroovyTokenId.IDENTIFIER
&& ( TokenUtilities.textEquals(identifier, token.text())
|| TokenUtilities.endsWith(identifier, "." + token.text()) ) ) {
result[0] = computeRange(ts, token);
return;
}
while (ts.moveNext()) {
token = ts.token();
if (token != null && token.id() == GroovyTokenId.IDENTIFIER && TokenUtilities.endsWith(identifier, token.text())) {