twrnc
Version:
simple, expressive API for tailwindcss + react-native
26 lines (25 loc) • 755 B
TypeScript
import type { TwConfig } from './tw-config';
import type { StyleIR, DeviceContext, Platform } from './types';
import type Cache from './cache';
export default class UtilityParser {
private config;
private cache;
private position;
private string;
private char?;
private order?;
private isNull;
private isNegative;
private context;
constructor(input: string, config: TwConfig, cache: Cache, device: DeviceContext, platform: Platform);
parse(): StyleIR;
private parseUtility;
private handlePossibleArbitraryBreakpointPrefix;
private advance;
private get rest();
private peekSlice;
private consumePeeked;
private parsePrefixes;
private parseIsNegative;
private incrementOrder;
}