You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use module-symbols to detect the type definitions in a file., but --display fails if the byte specified falls within a single-line comment
I would typically inspect a file like so:
./haxe --display Test.hx@0@module-symbols
But unfortunately, a common scenario is a comment at the top of a file:
// Copyright something
class Test { public function new() {} }
Which results in:
>haxe --display Test.hx@0@module-symbols
Error: No completion point was found
Note that all of the following do work:
/* Copyright something */
class Test { public function new() {} }
(note leading whitespace):
// Copyright something
class Test { public function new() {} }
I would think that // and /* comments would be treated the same.
Workaround:
Some less-than-ideal workarounds include:
Detect the leading comment length N and construct my command as: haxe --display Test.hx@${ N }@module-symbols
Change all my source files with leading // comments -- either to /* */ comments, or simply add a \n or at the beginning.
The text was updated successfully, but these errors were encountered:
I'm trying to use
module-symbols
to detect the type definitions in a file., but--display
fails if the byte specified falls within a single-line commentI would typically inspect a file like so:
But unfortunately, a common scenario is a comment at the top of a file:
Which results in:
Note that all of the following do work:
(note leading whitespace):
I would think that
//
and/*
comments would be treated the same.Workaround:
Some less-than-ideal workarounds include:
haxe --display Test.hx@${ N }@module-symbols
//
comments -- either to/* */
comments, or simply add a\n
orThe text was updated successfully, but these errors were encountered: