Position of this key's variant in [`Self::KIND_NAMES`].
(&self)
| 109 | |
| 110 | /// Position of this key's variant in [`Self::KIND_NAMES`]. |
| 111 | pub fn kind_index(&self) -> usize { |
| 112 | match self { |
| 113 | Self::AnalyzeFileSemantic(_) => 0, |
| 114 | Self::AnalyzeFileSyntax(_) => 1, |
| 115 | Self::AnalyzeFileEvaluated(_) => 2, |
| 116 | Self::AnalyzeFileWire { .. } => 3, |
| 117 | Self::ParseFile(_) => 4, |
| 118 | Self::NgModuleExportsScope(_) => 5, |
| 119 | Self::NgModuleImportsScope(_) => 6, |
| 120 | Self::ModuleExportMap(_) => 7, |
| 121 | Self::ComponentMapping => 8, |
| 122 | Self::NgModuleScopeRegistry => 9, |
| 123 | Self::ProgramFiles => 10, |
| 124 | Self::AmbientModuleFiles => 11, |
| 125 | Self::LocalExtraImports => 12, |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | /// The variant name, used as the perf span's display name and summary key. |
| 130 | pub fn name(&self) -> &'static str { |