#15 new
dcuccia

Spark.Compiler.CompilerException: Dynamic view compliation failed

Reported by dcuccia | May 25th, 2009 @ 04:24 PM

I'm using 0.1.0.35 on Windows 7 x64 RC and have received the following exeception below. Looks like most of the files are created, however I'm definitely missing index.html files for my individual namespaces.

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.35>docu pdt.exe

docu: simple docs done simply

Starting documentation generation

Unhandled Exception: Spark.Compiler.CompilerException: Dynamic view compilation
failed.
c:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!namespace!ty
pe.spark(16,120): error CS0103: The name 'WriteReference' does not exist in the
current context
c:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!namespace!ty
pe.spark(20,13): error CS0019: Operator '>' cannot be applied to operands of typ
e 'method group' and 'int'
c:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!namespace!ty
pe.spark(22,30): error CS0103: The name 'WriteSummary' does not exist in the cur
rent context

1 using Docu;
2 using Docu.TemplateExtensions;
3 using Docu.Parsing.Model;
4 using System.Linq;
5
6 [global::Spark.SparkViewAttribute(
7 Templates = new string[] {
8 "!namespace\!type.spark"
9 })]
10 public class View47983ca2fdc947bda7af089b3dd5a5c0 : Docu.Output.Rendering.Spa
rkTemplateBase
11 {
12
13 public override System.Guid GeneratedViewId
14 { get { return new System.Guid("47983ca2fdc947bda7af089b3dd5a5c0"); } }
15
16 public void RenderViewLevel0()
17 {
18 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!n
amespace!type.spark"
19 Formatter.NamespaceUrlFormat = "../{namespace}.htm";
20 #line default
21 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!n
amespace!type.spark"
22 Formatter.TypeUrlFormat = "../{type.namespace}/{type}.htm";
23 #line default
24 #line hidden
25 Output.Write("\r\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frame
set//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">\r\n s="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\r\n \r\n
"); 26 #line default
27 try
28 {
29 #line 6 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!n
amespace!type.spark"
30 Output.Write(h(Type.PrettyName));
31 #line default
32 }
33 catch(System.NullReferenceException)
34 {
35 Output.Write("${h(Type.PrettyName)}");
36 }
37 #line hidden
38 Output.Write(" - ");
39 #line default
40 try
41 {
42 #line 6 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!n
amespace!type.spark"
43 Output.Write(WriteProductName(Assemblies[0
])); 44 #line default
45 }
46 catch(System.NullReferenceException)
47 {
48 Output.Write("${WriteProductName(Assemblies[0])}");
49 }
50 #line hidden
51 Output.Write(" Documentation\r\n \r\n \r\n \r\n ");
52 #line default
53 #line 11 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace!type.spark"
54 {
55 #line default
56 #line hidden
57 Output.Write("


58 #line default
59 {
60 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!n
amespace_namespaces.spark"
61 foreach(var ns in Namespaces)
62 #line default
63 {
64 #line hidden
65 #line default
66 #line hidden
67 Output.Write(" \n\t
\n");
146 #line default
147 }
148 #line 12 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 149 {
150 #line default
151 #line hidden
152 Output.Write("

153 #line default
154 {
155 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_types.spark"
156 foreach(var type in Namespace.Types)
157 #line default
158 {
159 #line hidden
160 #line default
161 #line hidden
162 Output.Write("
\n\t
\n");
267 #line default
268 }
269 #line hidden
270 Output.Write("\r\n

272 try
273 {
274 #line 14 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 275 Output.Write(h(Type.PrettyNam
e));
276 #line default
277 }
278 catch(System.NullReferenceException)
279 {
280 Output.Write("${h(Type.PrettyName)}");
281 }
282 #line hidden
283 Output.Write("\r\n\t\t

Namespace ");
284 #line default
285 try
286 {
287 #line 15 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 288 Output.Write(Namespace.Name);
289 #line default
290 }
291 catch(System.NullReferenceException)
292 {
293 Output.Write("${Namespace.Name}");
294 }
295 #line hidden
296 Output.Write("

");
297 #line default
298 #line 16 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 299 if (Type.ParentType != null && Type.ParentType.PrettyName != "obj
ect")
300 #line default
301 {
302 #line hidden
303 Output.Write("

Parent ");
304 #line default
305 try
306 {
307 #line 16 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 308

                          Output.Write(WriteReference(Type.ParentType));

309 #line default
310 }
311 catch(System.NullReferenceException)
312 {
313 Output.Write("${WriteReference(Type.ParentType)}");
314 }
315 #line hidden
316 Output.Write("

");
317 #line default
318 } // if (Type.ParentType != null && Type.ParentType.PrettyNa
me != "object")
319 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 320 if (Type.Interfaces.Count > 0)
321 #line default
322 {
323 #line hidden
324 Output.Write("

Interfaces ");
325 #line default
326 try
327 {
328 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 329 Output
.Write(WriteInterfaces(Type.Interfaces)); 330 #line default
331 }
332 catch(System.NullReferenceException)
333 {
334 Output.Write("${WriteInterfaces(Type.Interfaces)}");

335 }
336 #line hidden
337 Output.Write("

");
338 #line default
339 } // if (Type.Interfaces.Count > 0)
340 #line hidden
341 Output.Write("\r\n\t
\r\n

343 #line 20 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 344 if (Type.Summary.Count > 0)
345 #line default
346 {
347 #line hidden
348 Output.Write("\r\n\t\t\t

350 try
351 {
352 #line 22 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 353 Output.Write(WriteSummary(Type.Summary));
354 #line default
355 }
356 catch(System.NullReferenceException)
357 {
358 Output.Write("${WriteSummary(Type.Summary)}");
359 }
360 #line hidden
361 Output.Write("\r\n\t\t\t
");
362 #line default
363 } // if (Type.Summary.Count > 0)
364 #line hidden
365 Output.Write("\r\n");
366 #line default
367 #line 26 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 368 if (Type.Events.Count > 0)
369 #line default
370 {
371 #line hidden
372 Output.Write("\r\n\t\t\t


374 {
375 #line 29 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 376 foreach(var ev in Type.Events)
377 #line default
378 {
379 #line hidden
380 #line default
381 #line hidden
382 Output.Write("

");
416 #line default
417 } // if (Type.Events.Count > 0)
418 #line hidden
419 Output.Write("\r\n");
420 #line default
421 #line 33 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 422 if (Type.Methods.Count > 0)
423 #line default
424 {
425 #line hidden
426 Output.Write("\r\n\t\t\t


427 #line default
428 {
429 #line 36 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 430 foreach(var method in Type.Methods)
431 #line default
432 {
433 #line hidden
434 #line default
435 #line hidden
436 Output.Write("

");
470 #line default
471 } // if (Type.Methods.Count > 0)
472 #line hidden
473 Output.Write("\r\n");
474 #line default
475 #line 40 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 476 if (Type.Properties.Count > 0)
477 #line default
478 {
479 #line hidden
480 Output.Write("\r\n\t\t\t


481 #line default
482 {
483 #line 43 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 484 foreach(var property in Type.Properties)
485 #line default
486 {
487 #line hidden
488 #line default
489 #line hidden
490 Output.Write("

");
524 #line default
525 } // if (Type.Properties.Count > 0)
526 #line hidden
527 Output.Write("\r\n");
528 #line default
529 #line 47 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 530 if (Type.Fields.Count > 0)
531 #line default
532 {
533 #line hidden
534 Output.Write("\r\n\t\t\t

Fields\r\n\t\t\t ");
578 #line default
579 } // if (Type.Fields.Count > 0)
580 #line hidden
581 Output.Write("\r\n\t

\r\n");
582 #line default
583 #line 55 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 584 {
585 #line default
586 #line 55 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 587 var events = Type.Events;
588 #line default
589 #line 55 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 590 var title = "Events";
591 #line default
592 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
593 if (events.Count() > 0)
594 #line default
595 {
596 #line hidden
597 Output.Write("\n

");
598 #line default
599 try
600 {
601 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
602 Output.Write(title);
603 #line default
604 }
605 catch(System.NullReferenceException)

606 {
607 Output.Write("${title}");
608 }
609 #line hidden
610 Output.Write("\n");
611 #line default
612 {
613 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
614 foreach(var ev in events)
615 #line default
616 {
617 #line hidden
618 #line default
619 #line hidden
620 Output.Write("


622 try
623 {
624 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
625 Output.Write(ev.Name);
626 #line default
627 }
628 catch(System.NullReferen
ceException)
629 {
630 Output.Write("${ev.N
ame}");
631 }
632 #line hidden
633 Output.Write("" class=<br/> "method">\n

"); 634 #line default
635 try
636 {
637 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
638 Output.Write(h(ev.Name));
639 #line default
640 }
641 catch(System.NullReferen
ceException)
642 {
643 Output.Write("${h(ev
.Name)}"); 644 }
645 #line hidden
646 Output.Write("
<
/h4>\n


648 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
649 {
650 #line default
651 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
652 var content = ev.Summary;
653 #line default
654 try
655 {
656 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_comment.spark"
657 Output.Write(Format(content));
658 #line default
659 }
660 catch(System.NullRef
erenceException)
661 {
662 Output.Write("${
Format(content)}");
663 }
664 }
665 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
666 {
667 #line default
668 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_events.spark"
669 var content = ev.Remarks;
670 #line default
671 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_remarks.spark"
672 if (content != null && content.Children.Count()


0) 673 #line default
674 {
675 #line hidden
676 Output.Write("<b
lockquote class="remarks">\n ");
677 #line default
678 try
679 {
680 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_remarks.spark"
681 Output.Write(Format(content));
682 #line default
683 }
684 catch(System.Nul
lReferenceException)
685 {
686 Output.Write
("${Format(content)}"); 687 }
688 #line hidden
689 Output.Write("\n

");
690 #line default
691 } // if (content !=
null && content.Children.Count() > 0)
692 }
693 #line hidden
694 Output.Write("\n </di
v>\n ");
695 #line default
696 #line hidden
697 #line default
698 }
699 } //foreach var ev in events
700 } // if (events.Count() > 0)
701 }
702 #line hidden
703 Output.Write("\r\n");
704 #line default
705 #line 57 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 706 var publicInstanceMethods = Type.Methods.Where(x => x.IsPublic && !
x.IsStatic);
707 #line default
708 #line 58 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 709 {
710 #line default
711 #line 58 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 712 var methods = publicInstanceMethods;
713 #line default
714 #line 58 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace!type.spark" 715 var title = "Public instance me
thods";
716 #line default
717 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
718 if (methods.Count() > 0)
719 #line default
720 {
721 #line hidden
722 Output.Write("\n\t

");
723 #line default
724 try
725 {
726 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
727 Output.Write(title);
728 #line default
729 }
730 catch(System.NullReferenceExcept
ion)
731 {
732 Output.Write("${title}");
733 }
734 #line hidden
735 Output.Write("\n");
736 #line default
737 {
738 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
739 foreach(var method in methods)
740 #line default
741 {
742 #line hidden
743 #line default
744 #line hidden
745 Output.Write("
d="");
746 #line default
747 try
748 {
749 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
750 Output.Write(method.Name);
751 #line default
752 }
753 catch(System.NullRef
erenceException)
754 {
755 Output.Write("${
method.Name}");
756 }
757 #line hidden
758 Output.Write("" cla
ss="method">\n\t\t

");
759 #line default
760 try
761 {
762 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
763 Output.Write(h(method.ReturnType.PrettyName));
764 #line default
765 }
766 catch(System.NullRef
erenceException)
767 {
768 Output.Write("${
h(method.ReturnType.PrettyName)}");
769 }
770 #line hidden
771 Output.Write(" <stro
ng>");
772 #line default
773 try
774 {
775 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
776 Output.Write(h(method
.PrettyName)); 777 #line default
778 }
779 catch(System.NullRef
erenceException)
780 {
781 Output.Write("${
h(method.PrettyName)}");
782 }
783 #line hidden
784 Output.Write("</stro
ng>(");
785 #line default
786 try
787 {
788 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
789


        Output.Write(OutputMethodParams(method));

790 #line default
791 }
792 catch(System.NullRef
erenceException)
793 {
794 Output.Write("${
OutputMethodParams(method)}");
795 }
796 #line hidden
797 Output.Write(")
\n\t\t


799 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
800 {
801 #line default
802 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
803 var content = method.Summary;
804 #line default
805 try
806 {
807 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_comment.spark"
808 Output.Write(Format(content));
809 #line default
810 }
811 catch(System.Nul
lReferenceException)
812 {
813 Output.Write
("${Format(content)}"); 814 }
815 }
816 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
817 {
818 #line default
819 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_methods.spark"
820 var content = method.Remarks;
821 #line default
822 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_remarks.spark"
823 if (content != null && content.Children.Count()
0) 824 #line default
825 {
826 #line hidden
827 Output.Write
("

829 try
830 {
831 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_remarks.spark"
832 Output.Write(Format(content));
833 #line default
834 }
835 catch(System
.NullReferenceException) 836 {
837 Output.W
rite("${Format(content)}");
838 }
839 #line hidden
840 Output.Write
("\n
"); 841 #line default
842 } // if (content
!= null && content.Children.Count() > 0) 843 }
844 #line hidden
845 Output.Write("\n");
846 #line default
847 #line 10 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 848 var hasReturn = method.ReturnType.PrettyName != "void";
849 #line default
850 #line 11 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 851 var hasParams = method.Parameters.Count > 0;
852 #line default
853 #line hidden
854 Output.Write("\n");
855 #line default
856 #line 13 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 857 if (hasReturn || hasParams)
858 #line default
859 {
860 #line hidden
861 Output.Write("<t
able>\n Parameters");
862 #line default
863 #line 15 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 864 if (hasReturn)
865 #line default
866 {
867 #line hidden
868 Output.Write
("\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t"); 902 #line default
903 } // if (hasRetu
rn)
904 {
905 #line 19 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 906 foreach(var param in method.Parameters)
907 #line default
908 {
909 #line hidden
910 #line default
911 #line hidden
912 Outp
ut.Write("\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t");
959 #line default
960 #line hidden
961 #line default
962 }
963 } //foreach
var param in method.Parameters
964 #line hidden
965 Output.Write
("\n\t\t\t
return "); 869 #line default
870 try
871 {
872 #line 16 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 873 Output.Write(Format(method.ReturnType))
; 874 #line default
875 }
876 catch(System
.NullReferenceException) 877 {
878 Output.W
rite("${Format(method.ReturnType)}");
879 }
880 #line hidden
881 Output.Write
("
"); 882 #line default
883 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 884 {
885 #line default
886 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 887 var content = method.Returns;
888 #line default
889 try
890 {
891 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_comment.spark"
892 Output.Write(Format(content));
893 #line default
894 }
895 catch(Sy
stem.NullReferenceException)
896 {
897 Outp
ut.Write("${Format(content)}");
898 }
899 }
900 #line hidden
901 Output.Write
("
");
913 #line default
914 try
915 {
916 #line 20 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 917 Output.Write(Format(param.Reference));
918 #line default
919 }
920 catc
h(System.NullReferenceException)
921 {
922
Output.Write("${Format(param.Reference)}");
923 }
924 #line hidden
925 Outp
ut.Write("
");
926 #line default
927 try
928 {
929 #line 20 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 930 Output.Write
(param.Name); 931 #line default
932 }
933 catc
h(System.NullReferenceException)
934 {
935
Output.Write("${param.Name}");
936 }
937 #line hidden
938 Outp
ut.Write("
");
939 #line default
940 #line 21 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 941 {
942 #line default
943 #line 21 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 944 var content = param.Summary;
945 #line default
946
try
947
{ 948 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_comment.spark"
949 Output.Write(Format(content));
950 #line default
951
} 952
catch(System.NullReferenceException)
953
{ 954
Output.Write("${Format(content)}");

955
} 956 }
957 #line hidden
958 Outp
ut.Write("

"); 966 #line default
967 } // if (hasRetu
rn || hasParams)
968 #line 24 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 969 {
970 #line default
971 #line 24 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 972 var content = method.Value;
973 #line default
974 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_value.spark"
975 if (content.Children.Count() > 0)
976 #line default
977 {
978 #line hidden
979 Output.W
rite("

980 #line default
981 try
982 {
983 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates!
namespace_value.spark"
984 Output.Write(Format(content));
985 #line default
986 }
987 catch(Sy
stem.NullReferenceException)
988 {
989 Outp
ut.Write("${Format(content)}");
990 }
991 #line hidden
992 Output.W
rite("\n
");
993 #line default
994 } // if (con
tent.Children.Count() > 0)
995 }
996 #line hidden
997 Output.Write("\n
\t\t
\n\t
"); 998 #line default
999 #line hidden
1000 #line default
1001 }
1002 } //foreach var method
in methods
1003 } // if (methods.Count() >
0)
1004 }
1005 #line hidden
1006 Output.Write("\r\n");
1007 #line default
1008 #line 60 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace!type.spark" 1009 var publicStaticMethods = Type.Methods.Where(x => x.IsPublic && x.
IsStatic);
1010 #line default
1011 #line 61 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace!type.spark" 1012 {
1013 #line default
1014 #line 61 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace!type.spark" 1015 var methods = publicStaticMethods;
1016 #line default
1017 #line 61 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace!type.spark" 1018 var title = "Public static metho
ds";
1019 #line default
1020 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1021 if (methods.Count() > 0)
1022 #line default
1023 {
1024 #line hidden
1025 Output.Write("\n\t

lass="section">");
1026 #line default
1027 try
1028 {
1029 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1030 Output.Write(title);
1031 #line default
1032 }
1033 catch(System.NullRefere
nceException)
1034 {
1035 Output.Write("${tit
le}");
1036 }
1037 #line hidden
1038 Output.Write("

\n")
; 1039 #line default
1040 {
1041 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1042 foreach(var method in methods)
1043 #line default
1044 {
1045 #line hidden
1046 #line default
1047 #line hidden
1048 Output.Writ
e("1049 #line default
1050 try
1051 {
1052 #line 4 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1053 Output.Write(method.Name);
1054 #line default
1055 }
1056 catch(Syste
m.NullReferenceException)
1057 {
1058 Output.
Write("${method.Name}");
1059 }
1060 #line hidden
1061 Output.Writ
e("" class="method">\n\t\t

");
1062 #line default
1063 try
1064 {
1065 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1066 Output.Write(h(method.ReturnType.PrettyName));
1067 #line default
1068 }
1069 catch(Syste
m.NullReferenceException)
1070 {
1071 Output.
Write("${h(method.ReturnType.PrettyName)}");
1072 }
1073 #line hidden
1074 Output.Writ
e(" ");
1075 #line default
1076 try
1077 {
1078 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1079 Output.Write(h(metho
d.PrettyName));
1080 #line default
1081 }
1082 catch(Syste
m.NullReferenceException)
1083 {
1084 Output.
Write("${h(method.PrettyName)}");
1085 }
1086 #line hidden
1087 Output.Writ
e("
(");
1088 #line default
1089 try
1090 {
1091 #line 5 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1092


         Output.Write(OutputMethodParams(method));

1093 #line default
1094 }
1095 catch(Syste
m.NullReferenceException)
1096 {
1097 Output.
Write("${OutputMethodParams(method)}");
1098 }
1099 #line hidden
1100 Output.Writ
e(")\n\t\t


1101 #line default
1102 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1103 {
1104 #line default
1105 #line 7 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1106 var content = method.Summary;
1107 #line default
1108 try
1109 {
1110 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_comment.spark" 1111 Output.Write(Format(content));
1112 #line default
1113 }
1114 catch(S
ystem.NullReferenceException)
1115 {
1116 Out
put.Write("${Format(content)}");
1117 }
1118 }
1119 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1120 {
1121 #line default
1122 #line 8 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_methods.spark" 1123 var content = method.Remarks;
1124 #line default
1125 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_remarks.spark" 1126 if (content != null && content.Children.Count()
> 0) 1127 #line default
1128 {
1129 #line hidden
1130 Out
put.Write("

1131 #line default
1132 try

1133 {
1134 #line 2 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_remarks.spark" 1135 Output.Write(Format(content));
1136 #line default
1137 }
1138 cat
ch(System.NullReferenceException)
1139 {
1140
Output.Write("${Format(content)}"); 1141 }
1142 #line hidden
1143 Out
put.Write("\n");
1144 #line default
1145 } // if
(content != null && content.Children.Count() > 0) 1146 }
1147 #line hidden
1148 Output.Writ
e("\n");
1149 #line default
1150 #line 10 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1151 var hasReturn = method.ReturnType.PrettyName != "void";
1152 #line default
1153 #line 11 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1154 var hasParams = method.Parameters.Count > 0;
1155 #line default
1156 #line hidden
1157 Output.Writ
e("\n");
1158 #line default
1159 #line 13 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1160 if (hasReturn || hasParams)
1161 #line default
1162 {
1163 #line hidden
1164 Output.
Write("

\n Parameters");
1165 #line default
1166 #line 15 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1167 if (hasReturn)
1168 #line default
1169 {
1170 #line hidden
1171 Out
put.Write("\n\t\t\t\t\t\n\t\t\t\t\t
return ");
1172 #line default
1173 try

1174 {
1175 #line 16 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1176 Output.Write(Format(method.ReturnType)
); 1177 #line default
1178 }
1179 cat
ch(System.NullReferenceException)
1180 {
1181
Output.Write("${Format(method.ReturnType)}"); 1182 }
1183 #line hidden
1184 Out
put.Write("

");
1185 #line default
1186 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1187 {
1188 #line default
1189 #line 17 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates
!namespace_methods.spark" 1190 var content = method.Returns;
1191 #line default
1192
try 1193
{ 1194 #line 1 "C:\Users\dcuccia\Documents\Downloads\docu-alpha-0.1.0.2\templates<br/> !namespace_comment.spark" 1195 Output.Write(Format(content));
1196 #line default
1197
} 1198
catch(System.NullReferenceException) 1199
{ 1200
 Output.Write("${Format(content)}");

1201
} 1202 }
1203 #line hidden
1204

Comments and changes to this ticket

  • James Gregory

    James Gregory May 27th, 2009 @ 07:10 PM

    • Tag set to error, output

    Sounds like you've got a typo in your template. It's hard to tell from the exception (they're hardly clear!) exactly what. Are you able to attach your templates here?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Simple documentation done simply

People watching this ticket

Tags

Pages