Support AST sharing across the detectives and module type detection