[as2api-dev] Re: as2api-dev digest, Vol 1 #88 - 6 msgs

Gaspy Gaspy <gaspyy at gmail.com>
Thu, 14 Jul 2005 12:58:54 +0300


------=_Part_855_15429804.1121335134022
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Dave,

>=20
> I have several examples of files that have working imports.



yes, I too have other cases where import works.
Upon investigation it seems that if there are [ ] metatags just above the=
=20
import statement, as2api produces the error. Such metatags are like
[IconFile("icon_checkbox.png")]
[Event("onChange")]

Is there any error message mentioning this file in the output sent to
> your console window?


This is the trace (not sure if all of it is relevant):
md/components/Textfield.as: Expected <class>, <interface> or <intrinsic>,=
=20
but found #<ActionScript::Parse::ImportToken:0x2b18f40 @lineno=3D33,=20
@body=3D"import">
./parse/parser.rb:440:in `err'
./parse/parser.rb:95:in `parse_type_definition'
./parse/parser.rb:54:in `parse_compilation_unit'
./api_loader.rb:18:in `simple_parse'
./ui/cli.rb:160:in `parse_file'
./ui/cli.rb:157:in `open'
./ui/cli.rb:157:in `parse_file'
./ui/cli.rb:176:in `parse_all'
./ui/cli.rb:174:in `each_with_index'
./ui/cli.rb:174:in `each'
./ui/cli.rb:174:in `each_with_index'
./ui/cli.rb:174:in `parse_all'
./ui/cli.rb:173:in `parsing_sources'
./ui/cli.rb:173:in `parse_all'
./ui/cli.rb:186:in `main'
./ui/cli.rb:237
as2api.rb:3:in `require'
as2api.rb:3

Does it help if you add a semicolon to the end of the import statement?


no.

I will make more tests if needed, just let me know

------=_Part_855_15429804.1121335134022
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Hi Dave,<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I have severa=
l examples of files that have working imports.</blockquote>
<div><br>
<br>
yes, I too have other cases where import works.<br>
Upon investigation it seems that if there are [ ] metatags just above
the import statement, as2api produces the error. Such metatags are like<br>
[IconFile(&quot;icon_checkbox.png&quot;)]<br>
[Event(&quot;onChange&quot;)]<br>
</div><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is there any erro=
r message mentioning this file in the output sent to<br>your console window=
?
</blockquote>
<div><br>
This is the trace&nbsp; (not sure if all of it is relevant):<br>
md/components/Textfield.as: Expected &lt;class&gt;, &lt;interface&gt;
or &lt;intrinsic&gt;, but found
#&lt;ActionScript::Parse::ImportToken:0x2b18f40 @lineno=3D33,
@body=3D&quot;import&quot;&gt;<br>
./parse/parser.rb:440:in `err'<br>
./parse/parser.rb:95:in `parse_type_definition'<br>
./parse/parser.rb:54:in `parse_compilation_unit'<br>
./api_loader.rb:18:in `simple_parse'<br>
./ui/cli.rb:160:in `parse_file'<br>
./ui/cli.rb:157:in `open'<br>
./ui/cli.rb:157:in `parse_file'<br>
./ui/cli.rb:176:in `parse_all'<br>
./ui/cli.rb:174:in `each_with_index'<br>
./ui/cli.rb:174:in `each'<br>
./ui/cli.rb:174:in `each_with_index'<br>
./ui/cli.rb:174:in `parse_all'<br>
./ui/cli.rb:173:in `parsing_sources'<br>
./ui/cli.rb:173:in `parse_all'<br>
./ui/cli.rb:186:in `main'<br>
./ui/cli.rb:237<br>
as2api.rb:3:in `require'<br>
as2api.rb:3<br>
</div><br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Does it help if y=
ou add a semicolon to the end of the import statement?</blockquote>
<div><br>
</div>no.<br>
<br>
I will make more tests if needed, just let me know<br>
</div><br>

------=_Part_855_15429804.1121335134022--