GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — renameReservedKeywords | ADK for TypeScript: API Reference - v2.5.0

  • renameReservedKeywords

Function renameReservedKeywords

  • renameReservedKeywords(s: string, prefix?: string): string

    Prefixes a Python keyword, the way adk-python's rename_python_keywords does. Mirrors the reference exactly: the set is Python's, not TypeScript's.

    Parameters

    • s: string

      The candidate identifier.

    • prefix: string = DEFAULT_RESERVED_WORD_PREFIX

      The prefix to add when s is reserved.

    Returns string

    prefix + s when s is reserved, otherwise s unchanged.

    Example

    renameReservedKeywords('in'); // 'param_in'
    renameReservedKeywords('total'); // 'total'
    • Defined in core/src/utils/case_utils.ts:128
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.