- 
    
Bug
 - 
    Resolution: Unresolved
 - 
    
P3: Somewhat important
 - 
    dev
 - 
    None
 
Currently when parsing .js files, directives are being handled by lexer with the `QQmlJS::Directives` helper. Afterwards there are no corresponding AST::Node-s, which makes it a bit harder to traverse through or modify those items.
The other implication that comments related to directives cannot be properly attached to them and being attached to the first AST::Node instead.
One of the potential proposal is to introduce the corresponding Nodes so that they will be part of the Parsed tree.
(ref.  Fabian Kosmale: Handling of pragmas and imports in js files )
 
- relates to
 - 
                    
QTBUG-118613 dom: fix memory errors when visiting QmlFile::m_astComments
-         
 - Reported
 
 -