mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed Go To Definition crash with no methodDecl
This commit is contained in:
parent
13ca09a464
commit
7349cdf50f
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ bool BfAutoComplete::IsAttribute(BfTypeInstance* typeInst)
|
||||||
}
|
}
|
||||||
|
|
||||||
void BfAutoComplete::AddMethod(BfTypeInstance* typeInstance, BfMethodDef* methodDef, BfMethodInstance* methodInstance, BfMethodDeclaration* methodDecl, const StringImpl& methodName, const StringImpl& filter)
|
void BfAutoComplete::AddMethod(BfTypeInstance* typeInstance, BfMethodDef* methodDef, BfMethodInstance* methodInstance, BfMethodDeclaration* methodDecl, const StringImpl& methodName, const StringImpl& filter)
|
||||||
{
|
{
|
||||||
String replaceName;
|
String replaceName;
|
||||||
AutoCompleteEntry entry("method", methodName);
|
AutoCompleteEntry entry("method", methodName);
|
||||||
if (methodDecl != NULL)
|
if (methodDecl != NULL)
|
||||||
|
@ -505,7 +505,7 @@ void BfAutoComplete::AddMethod(BfTypeInstance* typeInstance, BfMethodDef* method
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mResolveType == BfResolveType_GoToDefinition) && (mGetDefinitionNode == NULL) && (methodDecl->mNameNode != NULL))
|
if ((mResolveType == BfResolveType_GoToDefinition) && (mGetDefinitionNode == NULL) && (methodDecl != NULL) && (methodDecl->mNameNode != NULL))
|
||||||
SetDefinitionLocation(methodDecl->mNameNode);
|
SetDefinitionLocation(methodDecl->mNameNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue