MCPcopy Create free account
hub / github.com/Kitware/CMake / EndClass

Method EndClass

Source/cmDependsJavaParserHelper.cxx:189–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void cmDependsJavaParserHelper::EndClass()
190{
191 if (this->ClassStack.empty()) {
192 std::cerr << "Error when parsing. Current class is null" << std::endl;
193 abort();
194 }
195 if (this->ClassStack.size() <= 1) {
196 std::cerr << "Error when parsing. Parent class is null" << std::endl;
197 abort();
198 }
199 CurrentClass& current = this->ClassStack.back();
200 CurrentClass& parent = this->ClassStack[this->ClassStack.size() - 2];
201 this->CurrentDepth--;
202 parent.NestedClasses.push_back(current);
203 this->ClassStack.pop_back();
204}
205
206void cmDependsJavaParserHelper::PrintClasses()
207{

Callers 1

yyparseFunction · 0.80

Calls 5

push_backMethod · 0.80
pop_backMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected