Cannot find a method "Highlight" with arg type "NameSpace"
Posted: Sat Feb 26, 2011 9:59 pm
Gentlemen
After parsing file i get a CobraModule i tried to run
untill i added namespace to the code file. Error reported is the subject of this post
am i doing something fundamentally wrong or something needs fixing in cobra
and why are doc strings not allowed for namespaces when they are allowed for classes.
also writeDeepString does not report the doc string of the module and class it does of method
i suggest that module level and class level doc-strings be provisioned into Writedeepstring()
Thanking_You
RIGHT_THEN
After parsing file i get a CobraModule i tried to run
- Code: Select all
cm1.WriteHtmlHighlightedFileTo(Environment.CurrentDirectory);
untill i added namespace to the code file. Error reported is the subject of this post
"""
mistakes and corrections are intentionally done to
see how would parser respond.
when we put namespace,
Cannot find a method "Highlight" with arg type "NameSpace"
is given by HtmlSource().
"""
namespace Yamamoto
class Main1
"""
I am a Class
"""
def main is shared
"""
i am a method
"""
a as int = 2 # this is a
b = 3 # this is b
z = 4
b = 4 + z
z = a + b
a = z + b
x is string = 'yellow'
print a, b, c
System.Console.writeLine("hello again")
print 'hello'
print 'x'
System.Console.writeLine("hello again")
print 'hello'
print 'x'
def add( num1 , num2 ) as int is shared
return num1 + num2
am i doing something fundamentally wrong or something needs fixing in cobra
and why are doc strings not allowed for namespaces when they are allowed for classes.
also writeDeepString does not report the doc string of the module and class it does of method
i suggest that module level and class level doc-strings be provisioned into Writedeepstring()
Thanking_You
RIGHT_THEN