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