Get the type of AMD module used for an AST node or within a file