mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
correct decendant/decendent/descendent in identifiers, errors, and comments
This commit is contained in:
parent
7ddd8665b7
commit
d28b139933
16 changed files with 54 additions and 54 deletions
|
@ -107,7 +107,7 @@ public class DecisionNode {
|
|||
(startbit + bitsize - 1) + "), value=0x" + Integer.toHexString(val) + ", context=");
|
||||
debug.append(walker.getParserContext().getContextBytes(), startbit, bitsize);
|
||||
debug.append("\n");
|
||||
debugDumpDecendentConstructors(debug, children[val]);
|
||||
debugDumpDescendantConstructors(debug, children[val]);
|
||||
}
|
||||
|
||||
private void debugInstructionBitsDecision(SleighDebugLogger debug, ParserWalker walker,
|
||||
|
@ -135,15 +135,15 @@ public class DecisionNode {
|
|||
(startbit + bitsize - 1) + "), value=0x" + Integer.toHexString(val) + ", bytes=");
|
||||
debug.append(bytes, (offset * 8) + startbit, bitsize);
|
||||
debug.append("\n");
|
||||
debugDumpDecendentConstructors(debug, children[val]);
|
||||
debugDumpDescendantConstructors(debug, children[val]);
|
||||
}
|
||||
|
||||
private void debugDumpDecendentConstructors(SleighDebugLogger debug, DecisionNode child) {
|
||||
private void debugDumpDescendantConstructors(SleighDebugLogger debug, DecisionNode child) {
|
||||
debug.indent();
|
||||
debug.append(
|
||||
"decendent constructors for decision node (complete tree dump ordered by line number):\n");
|
||||
"descendant constructors for decision node (complete tree dump ordered by line number):\n");
|
||||
List<Constructor> clist = new ArrayList<>();
|
||||
child.dumpDecendentConstructors(clist);
|
||||
child.dumpDescendantConstructors(clist);
|
||||
for (Constructor c : clist) {
|
||||
debug.dumpConstructor(null, c);
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ public class DecisionNode {
|
|||
}
|
||||
};
|
||||
|
||||
private void dumpDecendentConstructors(List<Constructor> clist) {
|
||||
private void dumpDescendantConstructors(List<Constructor> clist) {
|
||||
if (bitsize == 0) { // The node is terminal
|
||||
for (Constructor c : constructlist) {
|
||||
int index = Collections.binarySearch(clist, c, debugInstructionComparator);
|
||||
|
@ -171,7 +171,7 @@ public class DecisionNode {
|
|||
}
|
||||
else {
|
||||
for (DecisionNode child : children) {
|
||||
child.dumpDecendentConstructors(clist);
|
||||
child.dumpDescendantConstructors(clist);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -522,9 +522,9 @@ class ModuleManager {
|
|||
}
|
||||
|
||||
/**
|
||||
* Perform recursive check to determine if specified id is a child or decendant
|
||||
* Perform recursive check to determine if specified id is a child or descendant
|
||||
* of the specified module.
|
||||
* @param id descendent child id (positive for module, negative for fragment)
|
||||
* @param id descendant child id (positive for module, negative for fragment)
|
||||
* @param moduleID module id (positive)
|
||||
* @return true if specified id is a descendant of moduleID.
|
||||
* @throws IOException if database IO error occurs
|
||||
|
|
|
@ -110,7 +110,7 @@ public interface Namespace {
|
|||
* this namespace.
|
||||
* @throws DuplicateNameException if another symbol exists in the parent namespace with
|
||||
* the same name as this namespace
|
||||
* @throws CircularDependencyException if the parent namespace is a descendent of this
|
||||
* @throws CircularDependencyException if the parent namespace is a descendant of this
|
||||
* namespace.
|
||||
*/
|
||||
public void setParentNamespace(Namespace parentNamespace)
|
||||
|
|
|
@ -152,7 +152,7 @@ public class GroupPath implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Return true if the indicated group path is a descendent of this group path.
|
||||
* Return true if the indicated group path is a descendant of this group path.
|
||||
* @param grpPath the group path
|
||||
*/
|
||||
public boolean isDescendant(GroupPath grpPath) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue