[AutoDiff] [ASTGen] Check for 'linear' when generating 'AttributedTypeRepr'. (#27656)
ASTGen did not know how to handle `@differentiable(linear)`, which caused parsed `@differentiable(linear)` function types to lose the "linear" bit when they are an argument or a result in a SIL function's type signature. This patch teaches ASTGen to check for `linear` in `TypeAttributes` when generating AST.
Resolves [TF-901](https://bugs.swift.org/browse/TF-901).