int[] numbers = { 1, 2, 3 };
var semanticModel = compilation.GetSemanticModel(tree); var arrayType = semanticModel.GetTypeInfo(numbers).Type as IArrayTypeSymbol;This code will give us an IArrayTypeSymbol for the "int[]" type. Package/library: Microsoft.CodeAnalysis.CSharp Symbol APIs.