Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 1735 Details for
Bug 21768
ast: incorrect length of SimpleName in MethodDeclaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
fix
fix21768.txt (text/plain), 920 bytes, created by
Martin Aeschlimann
on 2002-07-25 07:14:47 EDT
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Martin Aeschlimann
Created:
2002-07-25 07:14:47 EDT
Size:
920 bytes
patch
obsolete
> int pos= name.getStartPosition() + name.getLength(); > > StringBuffer insertString= new StringBuffer(); > if (methodDecl.thrownExceptions().isEmpty()) { > insertString.append(" throws "); //$NON-NLS-1$ > try { > IScanner scanner= ASTResolving.createScanner(cu, name.getStartPosition()); > int nextNoken= scanner.getNextToken(); > while (nextNoken != ITerminalSymbols.TokenNameRPAREN) { > nextNoken= scanner.getNextToken(); > if (nextNoken == ITerminalSymbols.TokenNameEOF) { > return; > } > } > pos= scanner.getCurrentTokenEndPosition() + 1; > } catch (InvalidInputException e) { > return; > } > } else { > insertString.append(", "); //$NON-NLS-1$ > List thrownExceptions= methodDecl.thrownExceptions(); > ASTNode last= (ASTNode) thrownExceptions.get(thrownExceptions.size() - 1); > pos= last.getStartPosition() + last.getLength(); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21768
: 1735 |
1737