@Override /* pp */ boolean isExpanding(Macro m) { /* When we are expanding an arg, 'this' macro is not * being expanded, and thus we may re-expand it. */ if (/* XXX this.arg == null && */ this.macro == m) return true; return super.isExpanding(m); }
@Override /* pp */ boolean isExpanding(Macro m) { /* When we are expanding an arg, 'this' macro is not * being expanded, and thus we may re-expand it. */ if (/* XXX this.arg == null && */ this.macro == m) return true; return super.isExpanding(m); }
@Override /* pp */ boolean isExpanding(@Nonnull Macro m) { /* When we are expanding an arg, 'this' macro is not * being expanded, and thus we may re-expand it. */ if (/* XXX this.arg == null && */this.macro == m) return true; return super.isExpanding(m); }
/** * Returns true if this Source is expanding the given macro. * * This is used to prevent macro recursion. */ /* pp */ boolean isExpanding(Macro m) { Source parent = getParent(); if (parent != null) return parent.isExpanding(m); return false; }
/** * Returns true if this Source is expanding the given macro. * * This is used to prevent macro recursion. */ /* pp */ boolean isExpanding(Macro m) { Source parent = getParent(); if (parent != null) return parent.isExpanding(m); return false; }
/** * Returns true if this Source is expanding the given macro. * * This is used to prevent macro recursion. */ /* pp */ boolean isExpanding(@Nonnull Macro m) { Source parent = getParent(); if (parent != null) return parent.isExpanding(m); return false; }
private Token expanded_token() throws IOException, LexerException { for (;;) { Token tok = source_token(); // System.out.println("Source token is " + tok); if (tok.getType() == IDENTIFIER) { Macro m = macros.get(tok.getText()); if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok)) continue; } return tok; } }
private Token expanded_token() throws IOException, LexerException { for (;;) { Token tok = source_token(); // System.out.println("Source token is " + tok); if (tok.getType() == IDENTIFIER) { Macro m = macros.get(tok.getText()); if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok)) continue; } return tok; } }
@Nonnull private Token expanded_token() throws IOException, LexerException { for (;;) { Token tok = source_token(); // System.out.println("Source token is " + tok); if (tok.getType() == IDENTIFIER) { Macro m = getMacro(tok.getText()); if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok)) continue; } return tok; } }
if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok))
if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok))
if (m == null) return tok; if (source.isExpanding(m)) return tok; if (macro(m, tok))