question: public int simpleLogWarnings ( Context cx , boolean logAsErrors ) { CompilerHandler handler = cx . getHandler ( ) ; if ( handler == null ) { handler = cx . statics . handler ; } int count = 0 ; for ( TreeMap < Integer , Set < WarningRecord > > locMap : warningsByLoc . values ( ) ) { for ( Set < WarningRecord > records : locMap . values ( ) ) { for ( WarningRecord record : records ) { StringBuilder sb = new StringBuilder ( ) ; InputBuffer input = record . loc . input ; createErrorMessage ( record , sb , record . code ) ; String source = input . getLineText ( record . loc . pos ) ; if ( logAsErrors ) { handler . error ( input . origin , record . lineNum , record . colNum , sb . toString ( ) , source , record . code ) ; } else { handler . warning ( input . origin , record . lineNum , record . colNum , sb . toString ( ) , source , record . code ) ; } count ++ ; } } } return count ; }
target:  Log warnings with little formatting to the warning or error stream FLEX hooks into this method, nothing in ASC uses it.