private void Visit(MethodDefinition method) { if (!_options.ShouldVisit(method.ToMethodKey())) { return; } _modelCreator.StartMethod(method.ToKey()); _modelCreator.SetMethodPrototype(method.ToReturnTypeKey(), method.ToParameterTypeKey()); _modelCreator.SetMethodFlags(method.IsConstructor, method.IsAbstract, method.IsVirtual, method.IsStatic, _options.PrimaryVisitation); if (_options.PrimaryVisitation) { Visit(method.CustomAttributes); if (method.Body != null) { method.Body.Accept(new CodeVisitor(_modelCreator)); } } _modelCreator.EndMethod(); }