Menu

#96 Parser errors

open
nobody
Parser (35)
5
2005-11-22
2005-11-22
Anonymous
No

Hi,

I'm getting errors parsing most of my projects. I got
one error parsing a constructor call split across
multiple lines that involved a ParamArray and another
in a separate project saying that I have forgotten the
root namespace. The stack trace is below.

An idea occurred to me: it seems there is a lot of
effort spent in getting the parser to correctly parse
the contents of functions.

However, an understanding of the _contents_ of
functions is completely unnecessary to the
documentation tool. It would suffice to say that a
function has text in it, that ends with the words "End
Function". No more parsing errors. Otherwise we are in
a "death by a thousand cuts" scenarios where the tool
will not stabilise until every last parsing bug has
been hunted down.

Is this viable?

Thanks,
Matt

-----------------

parsing Condition.vb
Error: Resolving failed: Render
Error: No details for method 'Render' found.
You have probably forgotten to specify the
rootnamespace for the project.
at Resolver.GetMethodSignature(MethodDeclaration
method, Location location) i
n c:\Dokumente und Einstellungen\marpal\Eigene
Dateien\Programmierung\VB.DOC\src
\CommentExtractor\Resolver.cs:line 433
at CommentVisitor.Visit(MethodDeclaration
methodDeclaration, Object data) in
c:\Dokumente und Einstellungen\marpal\Eigene
Dateien\Programmierung\VB.DOC\src\C
ommentExtractor\CommentVisitor.cs:line 154
at
ICSharpCode.SharpRefactory.Parser.AST.VB.MethodDeclaration.AcceptVisitor(I
ASTVisitor visitor, Object data)
at
ICSharpCode.SharpRefactory.Parser.AST.VB.AbstractNode.AcceptChildren(IASTV
isitor visitor, Object data)
at CommentVisitor.Visit(TypeDeclaration
typeDeclaration, Object data) in c:\D
okumente und Einstellungen\marpal\Eigene
Dateien\Programmierung\VB.DOC\src\Comme
ntExtractor\CommentVisitor.cs:line 128
at
ICSharpCode.SharpRefactory.Parser.AST.VB.TypeDeclaration.AcceptVisitor(IAS
TVisitor visitor, Object data)
at
ICSharpCode.SharpRefactory.Parser.AST.VB.AbstractNode.AcceptChildren(IASTV
isitor visitor, Object data)
at CommentVisitor.Visit(NamespaceDeclaration
namespaceDeclaration, Object dat
a) in c:\Dokumente und Einstellungen\marpal\Eigene
Dateien\Programmierung\VB.DOC
\src\CommentExtractor\CommentVisitor.cs:line 91
at
ICSharpCode.SharpRefactory.Parser.AST.VB.NamespaceDeclaration.AcceptVisito
r(IASTVisitor visitor, Object data)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.