problems.add(new InternalCompilerProblem(ex));
problems.add(new InternalCompilerProblem(ex));
public ASDocToken next() { ASDocToken token = null; boolean needToken = true; while (needToken) { try { token = tokenizer.nextToken(); needToken = false; } catch (Exception e) { needToken = true; problems.add(new InternalCompilerProblem(e)); } } if (token == null) return null; switch (token.getType()) { case ASTokenTypes.TOKEN_ASDOC_TAG: case ASTokenTypes.TOKEN_ASDOC_TEXT: return token; } return null; }
public ASDocToken next() { ASDocToken token = null; boolean needToken = true; while (needToken) { try { token = tokenizer.nextToken(); needToken = false; } catch (Exception e) { needToken = true; problems.add(new InternalCompilerProblem(e)); } } if (token == null) return null; switch (token.getType()) { case ASTokenTypes.TOKEN_ASDOC_TAG: case ASTokenTypes.TOKEN_ASDOC_TEXT: return token; } return null; }
/** * Returns the {@link Reader} for the contents of file that is processed by * this compilation unit. * * @return file reader or <code>null</code> if any problem occurs. */ private Reader getFileReader(final Collection<ICompilerProblem> problems) { try { if (fileEntry != null) { InputStream in = fileEntry.createInputStream(); if (in != null) { return new InputStreamReader(in, "UTF-8"); } } else { return getRootFileSpecification().createReader(); } } catch (IOException ex) { problems.add(new InternalCompilerProblem(ex)); } return null; }
/** * Returns the {@link Reader} for the contents of file that is processed by * this compilation unit. * * @return file reader or <code>null</code> if any problem occurs. */ private Reader getFileReader(final Collection<ICompilerProblem> problems) { try { if (fileEntry != null) { InputStream in = fileEntry.createInputStream(); if (in != null) { return new InputStreamReader(in, "UTF-8"); } } else { return getRootFileSpecification().createReader(); } } catch (IOException ex) { problems.add(new InternalCompilerProblem(ex)); } return null; }
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
new InternalCompilerProblem(e) : new InternalCompilerProblem2(path, e, SUB_SYSTEM); errors.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
new InternalCompilerProblem(e) : new InternalCompilerProblem2(path, e, SUB_SYSTEM); errors.add(problem);
/** * Find the {@code DoABC} tag from {@link SWFCache} by script name and * extract the ABC bytes. */ @Override protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException { byte[] abcBytes = null; final ArrayList<ICompilerProblem> problems = new ArrayList<ICompilerProblem>(); final CacheStoreKeyBase key = SWFCache.createKey(swc, library.getPath()); final ITagContainer tags = ((SWFCache)getProject().getWorkspace().getSWCManager().getSWFCache()).get(key); startProfile(Operation.GET_ABC_BYTES); final DoABCTag doABC = SWFCache.findDoABCTagByName(tags, script.getName()); if (doABC == null) { problems.add(new InternalCompilerProblem( new RuntimeException("can't find ABC bytes for : " + script.getName()))); } else { abcBytes = doABC.getABCData(); } ABCBytesRequestResult result = new ABCBytesRequestResult(abcBytes); stopProfile(Operation.GET_ABC_BYTES); return result; }
/** * Find the {@code DoABC} tag from {@link SWFCache} by script name and * extract the ABC bytes. */ @Override protected IABCBytesRequestResult handleABCBytesRequest() throws InterruptedException { byte[] abcBytes = null; final ArrayList<ICompilerProblem> problems = new ArrayList<ICompilerProblem>(); final CacheStoreKeyBase key = SWFCache.createKey(swc, library.getPath()); final ITagContainer tags = ((SWFCache)getProject().getWorkspace().getSWCManager().getSWFCache()).get(key); startProfile(Operation.GET_ABC_BYTES); final DoABCTag doABC = SWFCache.findDoABCTagByName(tags, script.getName()); if (doABC == null) { problems.add(new InternalCompilerProblem( new RuntimeException("can't find ABC bytes for : " + script.getName()))); } else { abcBytes = doABC.getABCData(); } ABCBytesRequestResult result = new ABCBytesRequestResult(abcBytes); stopProfile(Operation.GET_ABC_BYTES); return result; }
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);
final ICompilerProblem problem = new InternalCompilerProblem(e); problems.add(problem);