44 references to ViewComponentTypes
Microsoft.CodeAnalysis.Razor.Compiler (44)
Language\SymbolCache.NamedTypeSymbolData.IsViewComponentResult.cs (1)
34IsViewComponent = symbol.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.Ordinal) ||
Mvc.Version1_X\ViewComponentTagHelperDescriptorFactory.cs (10)
44_viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); 45_genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); 46_taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); 47_iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); 95(string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || 96string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))) 114if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) 244.Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) 263if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) 265return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length);
Mvc.Version1_X\ViewComponentTagHelperProducer.Factory.cs (2)
21if (!compilation.TryGetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute, out var viewComponentAttributeType) || 28var nonViewComponentAttributeType = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute);
Mvc.Version2_X\ViewComponentTagHelperDescriptorFactory.cs (10)
44_viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); 45_genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); 46_taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); 47_iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); 108if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) 164(string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || 165string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))); 259.Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) 278if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) 280return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length);
Mvc.Version2_X\ViewComponentTagHelperProducer.Factory.cs (2)
21if (!compilation.TryGetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute, out var viewComponentAttributeType) || 28var nonViewComponentAttributeType = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute);
Mvc\RazorExtensionsDiagnosticFactory.cs (7)
23ViewComponentTypes.SyncMethodName, 24ViewComponentTypes.AsyncMethodName, 37ViewComponentTypes.SyncMethodName, 38ViewComponentTypes.AsyncMethodName); 49ViewComponentTypes.AsyncMethodName, 62ViewComponentTypes.SyncMethodName, 74ViewComponentTypes.SyncMethodName,
Mvc\ViewComponentTagHelperDescriptorFactory.cs (10)
44_viewComponentAttributeSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute); 45_genericTaskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.GenericTask); 46_taskSymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.Task); 47_iDictionarySymbol = compilation.GetTypeByMetadataName(ViewComponentTypes.IDictionary); 108if (string.Equals(selectedMethod.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal)) 164(string.Equals(m.Name, ViewComponentTypes.AsyncMethodName, StringComparison.Ordinal) || 165string.Equals(m.Name, ViewComponentTypes.SyncMethodName, StringComparison.Ordinal))); 262.Where(namedArgument => string.Equals(namedArgument.Key, ViewComponentTypes.ViewComponent.Name, StringComparison.Ordinal)) 281if (componentType.Name.EndsWith(ViewComponentTypes.ViewComponentSuffix, StringComparison.OrdinalIgnoreCase)) 283return componentType.Name.Substring(0, componentType.Name.Length - ViewComponentTypes.ViewComponentSuffix.Length);
Mvc\ViewComponentTagHelperProducer.Factory.cs (2)
21if (!compilation.TryGetTypeByMetadataName(ViewComponentTypes.ViewComponentAttribute, out var viewComponentAttributeType) || 28var nonViewComponentAttributeType = compilation.GetTypeByMetadataName(ViewComponentTypes.NonViewComponentAttribute);