public void enterFunction(FunctionDeclNode function) {
        this.function = (FunctionTypeNode)function.type;
        FunctionSymbol symbol = (FunctionSymbol)get(function.name);
        assert symbol == null;
        
        global = scopes.peek();
        scopes.add(symbol.scope);
        this.inFunction = true;
    }