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)); }
private BoundGenericMatrixType BindGenericMatrixType(GenericMatrixTypeSyntax node) { var scalarType = TypeFacts.GetScalarType(node.ScalarType); var numRows = (int)node.RowsToken.Value; var numCols = (int)node.ColsToken.Value; return(new BoundGenericMatrixType( IntrinsicTypes.GetMatrixType(scalarType, numRows, numCols), Bind(node.ScalarType, BindScalarType))); }
private BoundGenericMatrixType BindGenericMatrixType(GenericMatrixTypeSyntax node) { var scalarType = TypeFacts.GetScalarType(node.ScalarType); var numRows = (int) node.RowsToken.Value; var numCols = (int) node.ColsToken.Value; return new BoundGenericMatrixType( IntrinsicTypes.GetMatrixType(scalarType, numRows, numCols), Bind(node.ScalarType, BindScalarType)); }
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); }
public virtual void VisitGenericMatrixType(GenericMatrixTypeSyntax node) { DefaultVisit(node); }