* Build the vector of pre-definition headers. * Used by ONLY ASFormatter.cpp * NOTE: Do NOT add 'enum' here. It is an array type bracket. * NOTE: Do NOT add 'extern' here. Do not want an extra indent. * * @param preDefinitionHeaders a reference to the vector to be built. */
| 504 | * @param preDefinitionHeaders a reference to the vector to be built. |
| 505 | */ |
| 506 | void ASResource::buildPreDefinitionHeaders(vector<const string*>* preDefinitionHeaders, int fileType) |
| 507 | { |
| 508 | preDefinitionHeaders->push_back(&AS_CLASS); |
| 509 | if (fileType == C_TYPE) |
| 510 | { |
| 511 | preDefinitionHeaders->push_back(&AS_STRUCT); |
| 512 | preDefinitionHeaders->push_back(&AS_UNION); |
| 513 | preDefinitionHeaders->push_back(&AS_NAMESPACE); |
| 514 | } |
| 515 | if (fileType == JAVA_TYPE) |
| 516 | { |
| 517 | preDefinitionHeaders->push_back(&AS_INTERFACE); |
| 518 | } |
| 519 | if (fileType == SHARP_TYPE) |
| 520 | { |
| 521 | preDefinitionHeaders->push_back(&AS_STRUCT); |
| 522 | preDefinitionHeaders->push_back(&AS_INTERFACE); |
| 523 | preDefinitionHeaders->push_back(&AS_NAMESPACE); |
| 524 | } |
| 525 | sort(preDefinitionHeaders->begin(), preDefinitionHeaders->end(), sortOnName); |
| 526 | } |
| 527 | |
| 528 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 529 | * ASBase Functions |
nothing calls this directly
no outgoing calls
no test coverage detected