`MODEL_TYPE` not classified as `TSqlFragment` in `CreateExternalModelStatement`
Description
While using the Microsoft ScriptDom parser, I observed an inconsistency in the classification of properties within the CreateExternalModelStatement class.
Most properties are correctly identified as TSqlFragment types, including:
-
Location -
ModelName -
ApiFormat -
LocalRuntimePath -
Credential -
Parameters
However, the MODEL_TYPE field is not classified as a TSqlFragment, which breaks consistency and complicates tooling that relies on uniform fragment types for parsing and analysis.
๐ Expected Behavior
MODEL_TYPE should be exposed as a TSqlFragment, just like the other fields in CreateExternalModelStatement.
โ Actual Behavior
MODEL_TYPE is not treated as a TSqlFragment, making it harder to traverse or extract metadata consistently across all fields.
- Version: 170.128.0
๐งช Steps to Reproduce
- Parse a
CREATE EXTERNAL MODELstatement using ScriptDom. - Inspect the resulting
CreateExternalModelStatementobject. - Observe that
MODEL_TYPEis not aTSqlFragment.
โ Suggested Fix
Update the parser to classify MODEL_TYPE as a TSqlFragment for consistency and better support in downstream tooling.
๐ Additional Context
This change would improve the usability of ScriptDom for scenarios involving AST traversal, formatting, and metadata extraction.