private static TypeSymbol ResolveIntrinsicGenericMatrixType(GenericMatrixTypeSyntax type) { var scalarType = SyntaxFacts.GetScalarType(type.ScalarType.TypeTokens.Select(x => x.Kind).ToArray()); var numRows = (int)type.RowsToken.Value; var numCols = (int)type.ColsToken.Value; return(IntrinsicTypes.GetMatrixType(scalarType, numRows, numCols)); }