refactor: migrate legacy wire namespace to wrn
This commit is contained in:
@@ -83,7 +83,7 @@ export interface CompileResult {
|
||||
}
|
||||
|
||||
/** Compile `.wrn` source into an Expo Router React Native screen. */
|
||||
export function compileNativeWireFile(source: string): string {
|
||||
export function compileNativeWrnFile(source: string): string {
|
||||
const ast = parse(source);
|
||||
assertValidAst(ast);
|
||||
return generateNative(ast);
|
||||
@@ -93,7 +93,7 @@ export function compileNativeWireFile(source: string): string {
|
||||
* Compile `.wrn` source into TypeScript source. Errors include a stable code,
|
||||
* source location, code frame, and actionable hint whenever available.
|
||||
*/
|
||||
export function compileWireFile(source: string, filePath = "<inline .wrn>"): string {
|
||||
export function compileWrnFile(source: string, filePath = "<inline .wrn>"): string {
|
||||
try {
|
||||
const ast = parse(source);
|
||||
assertValidAst(ast, { file: filePath, accessibility: true });
|
||||
|
||||
Reference in New Issue
Block a user