
committed by
Misko Hevery

parent
a4934a74b6
commit
92e80af875
@ -20,10 +20,11 @@ export function mapEntry(key: string, value: o.Expression): MapEntry {
|
||||
return {key, value, quoted: false};
|
||||
}
|
||||
|
||||
export function mapLiteral(obj: {[key: string]: o.Expression}): o.Expression {
|
||||
export function mapLiteral(
|
||||
obj: {[key: string]: o.Expression}, quoted: boolean = false): o.Expression {
|
||||
return o.literalMap(Object.keys(obj).map(key => ({
|
||||
key,
|
||||
quoted: false,
|
||||
quoted,
|
||||
value: obj[key],
|
||||
})));
|
||||
}
|
||||
|
Reference in New Issue
Block a user