use of net.jangaroo.jooc.ast.IdeDeclaration in project jangaroo-tools by CoreMedia.
the class JsCodeGenerator method getFunctionNameAsIde.
public String getFunctionNameAsIde(FunctionExpr functionExpr) {
IdeDeclaration classDeclaration = functionExpr.getClassDeclaration();
String classNameAsIde = "";
if (classDeclaration != null) {
classNameAsIde = out.getQualifiedNameAsIde(classDeclaration);
}
JooSymbol sym = functionExpr.getSymbol();
return classNameAsIde + "$" + sym.getLine() + "_" + sym.getColumn();
}
use of net.jangaroo.jooc.ast.IdeDeclaration in project jangaroo-tools by CoreMedia.
the class JangarooParser method declareValues.
protected static void declareValues(Scope scope, String[] identifiers) {
for (String identifier : identifiers) {
Ide ide = new Ide(new JooSymbol(identifier));
IdeDeclaration decl = new VariableDeclaration(new JooSymbol("var"), ide, null, null);
decl.scope(scope);
}
}
use of net.jangaroo.jooc.ast.IdeDeclaration in project jangaroo-tools by CoreMedia.
the class JangarooParser method declareType.
private static void declareType(Scope scope, String identifier) {
IdeDeclaration decl = new PredefinedTypeDeclaration(identifier);
decl.scope(scope);
}
Aggregations