~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTQualifiedName.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-10-03 20:30:16 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131003203016-d4ug6l0xgosasumq
Tags: 8.2.1-1
* New upstream release.
* Updated autotools documentation sources.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        @Override
72
72
        public CPPASTQualifiedName copy(CopyStyle style) {
73
73
                CPPASTQualifiedName copy = new CPPASTQualifiedName();
74
 
                for (IASTName name : getNames())
 
74
                for (IASTName name : getNames()) {
75
75
                        copy.addName(name == null ? null : name.copy(style));
 
76
                }
76
77
                copy.setFullyQualified(isFullyQualified);
77
78
                copy.setOffsetAndLength(this);
78
79
                if (style == CopyStyle.withLocations) {
83
84
 
84
85
        @Override
85
86
        public final IBinding resolvePreBinding() {
86
 
                // The full qualified name resolves to the same thing as the last name
 
87
                // The whole qualified name resolves to the same thing as the last name.
87
88
                return getLastName().resolvePreBinding();
88
89
        }
89
90
 
90
91
        @Override
91
92
        public IBinding resolveBinding() {
92
 
                // The full qualified name resolves to the same thing as the last name
 
93
                // The whole qualified name resolves to the same thing as the last name.
93
94
                IASTName lastName= getLastName();
94
95
                return lastName == null ? null : lastName.resolveBinding();
95
96
        }
96
97
 
97
98
    @Override
98
99
        public final IBinding getPreBinding() {
99
 
                // The full qualified name resolves to the same thing as the last name
 
100
                // The whole qualified name resolves to the same thing as the last name.
100
101
                return getLastName().getPreBinding();
101
102
    }
102
103
    
110
111
                getLastName().setBinding(binding);
111
112
        }
112
113
 
113
 
 
114
114
        @Override
115
115
        public void addName(IASTName name) {
116
116
        assertNotFrozen();
200
200
                for (int i = 0; i <= namesPos; i++) {
201
201
                        final IASTName name = names[i];
202
202
                        if (i == namesPos) {
203
 
                                // pointer-to-member qualified names have a dummy name as the last part of the name, don't visit it
 
203
                                // Pointer-to-member qualified names have a dummy name as the last segment
 
204
                                // of the name, don't visit it.
204
205
                                if (name.getLookupKey().length > 0 && !name.accept(action))
205
206
                                        return false;
206
207
                        } else if (!name.accept(action))