コード例 #1
0
		public override void VisitPropertyDeclaration(PropertyDeclarationSyntax node)
		{
			if (node.ShouldBeHidden()) return;

			_propertyOrMethodName = node.Identifier.Text;
			if (PropertyOrMethodNamesOfInterest.Contains(_propertyOrMethodName))
			{
				// TODO: Look to get the generic types for the call so that we can prettify the fluent and OIS calls in docs e.g. client.Search<Project>({Call});
				// var genericArguments = node.DescendantNodes().OfType<GenericNameSyntax>().FirstOrDefault();
				// List<TypeSyntax> arguments = new List<TypeSyntax>();
				// if (genericArguments != null)
				// {
				// 	arguments.AddRange(genericArguments.TypeArgumentList.Arguments);
				// }

				this.InsideFluentOrInitializerExample = true;
				base.VisitPropertyDeclaration(node);
				this.InsideFluentOrInitializerExample = false;
			}
		}