[code-quality] assigning node type with function annotations?