DotGet function calls #9

Merged
probablycorey merged 5 commits from dotget-function-calls into main 2025-10-27 19:46:07 +00:00
Showing only changes of commit 219142140c - Show all commits

View File

@ -219,9 +219,9 @@ export const getDotGetParts = (node: SyntaxNode, input: string) => {
)
}
if (property.type.id !== terms.Identifier) {
if (property.type.id !== terms.Identifier && property.type.id !== terms.Number) {
throw new CompilerError(
`DotGet property must be an Identifier, got ${property.type.name}`,
`DotGet property must be an Identifier or Number, got ${property.type.name}`,
property.from,
property.to
)