MCPcopy Create free account
hub / github.com/angular/angular / kind_index

Method kind_index

packages/compiler-cli/preprocessor/ng-analyze/src/query/keys.rs:111–127  ·  view source on GitHub ↗

Position of this key's variant in [`Self::KIND_NAMES`].

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

nameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected