~ubuntu-branches/ubuntu/utopic/eclipse-wtp/utopic-proposed

« back to all changes in this revision

Viewing changes to org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-07-10 12:54:39 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140710125439-ixzeiqepu8m3e1z6
Tags: 3.6.0-1
* New upstream release.
* Refreshed d/patches/debian-custom-build.patch.
* Regenerate CSSTokenizer during build.
* Override codeless-jar warning in eclipse-wtp binary package.
* Override false positive source-is-missing lintian error in bundle
  org.eclipse.wst.jsdt.support.ie.

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
                int start = methodDeclaration.sourceStart;
349
349
                int end;
350
350
                 SimpleName methodName =null;
351
 
                 char[] name = methodDeclaration.getName();
352
 
                if (name!=null)
 
351
                if (methodDeclaration.selector != null) // We couldn't use inferred method name here, so 
 
352
                                                                                                // do not use methodDeclaration.getName() here!
353
353
                {
354
354
                          methodName = new SimpleName(this.ast);
355
 
                        methodName.internalSetIdentifier(new String(name));
 
355
                        methodName.internalSetIdentifier(new String(methodDeclaration.selector));
356
356
                        end = retrieveIdentifierEndPosition(start, methodDeclaration.sourceEnd);
357
357
 
358
358
                        methodName.setSourceRange(start, end == -1 ? 0 : end - start + 1);