Fixed crash in analyzer that caused #31
This commit is contained in:
parent
4425823404
commit
6aa75b80c5
@ -131,11 +131,10 @@ func (this *Tree) analyzeMethodCall (
|
|||||||
error,
|
error,
|
||||||
) {
|
) {
|
||||||
// get method
|
// get method
|
||||||
sourceExpr, err := this.analyzeExpression(nil, strict, call.Source)
|
source, err := this.analyzeExpression(nil, strict, call.Source)
|
||||||
source := sourceExpr.(*entity.Variable)
|
|
||||||
if err != nil { return nil, err }
|
if err != nil { return nil, err }
|
||||||
method, err := this.analyzeMethodOrBehavior (
|
method, err := this.analyzeMethodOrBehavior (
|
||||||
call.Position, source.Declaration.Type(), call.Name)
|
call.Position, source.Type(), call.Name)
|
||||||
if err != nil { return nil, err }
|
if err != nil { return nil, err }
|
||||||
|
|
||||||
// extract signature
|
// extract signature
|
||||||
|
Loading…
Reference in New Issue
Block a user