languageKeywordEncode function

String languageKeywordEncode(
  1. String name
)

Dart language keyword encode

Implementation

String languageKeywordEncode(String name) {
  if (_languageKeywords.contains(name)) {
    return 'dart__$name';
  }

  if (name.startsWith('_')) {
    return 'prisma__${name.substring(1)}';
  }

  return name;
}