You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2019/05/09 21:32:19 UTC
hljs extern compiler warnings
Hi,
I continue to hit against walls with externs...what's making me not
progress with the blog example about this (that I think will be very
important for Royale when published for the people coming), since this part
seems that needs a little more love to polish some things.
when building TDJ with the actual hljs.as declaration
package
{
/**
* @externs
*/
public class hljs
{
public static function highlightBlock(block:Element):void {}
}
}
I get this warnings:
may 09, 2019 11:21:59 PM com.google.javascript.jscomp.LoggerErrorManager
println
ADVERTENCIA:
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/TourDeJewel/target/javascript/bin/js-debug/hljs.js:15:
WARNING - accessing name hljs in externs has no effect. Perhaps you forgot
to add a var keyword?
hljs = function() {
^^^^
may 09, 2019 11:21:59 PM com.google.javascript.jscomp.LoggerErrorManager
println
ADVERTENCIA:
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/TourDeJewel/target/javascript/bin/js-debug/hljs.js:15:
WARNING - variable hljs is undeclared
hljs = function() {
^^^^
may 09, 2019 11:21:59 PM com.google.javascript.jscomp.LoggerErrorManager
println
ADVERTENCIA:
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/TourDeJewel/target/javascript/bin/js-debug/hljs.js:23:
Originally at:
/Users/carlosrovira/Dev/Royale/Source/royale-asjs/examples/royale/TourDeJewel/src/main/royale/
hljs.as:26: WARNING - name hljs is not defined in the externs.
public static function highlightBlock(block:Element):void {}
^^^^
may 09, 2019 11:21:59 PM com.google.javascript.jscomp.LoggerErrorManager
printSummary
ADVERTENCIA: 0 error(s), 3 warning(s), 97.7% typed
The project 'App' has been successfully compiled and optimized.
Maybe there's particularities that needs to be added that I didn't know?
thanks
--
Carlos Rovira
http://about.me/carlosrovira