Returns true if this is a module representing a script.
(&self)
| 1833 | |
| 1834 | /// Returns true if this is a module representing a script. |
| 1835 | pub fn is_script_module(&self) -> bool { |
| 1836 | self.data.name.is_script() |
| 1837 | } |
| 1838 | |
| 1839 | /// Returns true of this module is target of compilation. A non-target module is |
| 1840 | /// a dependency only but not explicitly requested to process. |
no test coverage detected