소스 검색

keep array metadata through the parameter marker

The parameter marker is transparent for types, including the array flag, so
array containment and other array-aware analysis see a bound array operand.
Danilo Fragoso 1 주 전
부모
커밋
a650d8bf3b
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      pkg/analyzer/analyzer.go

+ 2 - 0
pkg/analyzer/analyzer.go

@@ -1359,6 +1359,8 @@ func (a *Analyzer) analyzeFunctionCall(e *parser.FunctionCall) (*ExprInfo, error
 		argInfo, _ := a.analyzeExpr(e.Args[0])
 		if argInfo != nil {
 			info.Type = argInfo.Type
+			info.Array = argInfo.Array
+			info.Nullable = argInfo.Nullable
 		}
 	}