add syntactic check for dart