Name fieldName(Symbol sym) {
        if (scramble && (sym.flags() & PRIVATE) != 0 ||
            scrambleAll && (sym.flags() & (PROTECTED | PUBLIC)) == 0)
            return names.fromString("_$" + sym.name.getIndex());
        else
            return sym.name;
    }
Name fieldName ( Symbol sym ) { if ( scramble && ( sym . flags ( ) & PRIVATE ) != 0 || scrambleAll && ( sym . flags ( ) & ( PROTECTED | PUBLIC ) ) == 0 ) return names . fromString ( "_$" + sym . name . getIndex ( ) ) ; else return sym . name ; }
Given a field, return its name.