1- import { FluentBundle , FluentArgument } from "./bundle.js" ;
1+ import { FluentBundle , FluentVariable } from "./bundle.js" ;
22import { ComplexPattern } from "./ast.js" ;
33
44export class Scope {
@@ -7,20 +7,20 @@ export class Scope {
77 /** The list of errors collected while resolving. */
88 public errors : Array < Error > | null ;
99 /** A dict of developer-provided variables. */
10- public args : Record < string , FluentArgument > | null ;
10+ public args : Record < string , FluentVariable > | null ;
1111 /** The Set of patterns already encountered during this resolution.
1212 * Used to detect and prevent cyclic resolutions. */
1313 public dirty : WeakSet < ComplexPattern > = new WeakSet ( ) ;
1414 /** A dict of parameters passed to a TermReference. */
15- public params : Record < string , FluentArgument > | null = null ;
15+ public params : Record < string , FluentVariable > | null = null ;
1616 /** The running count of placeables resolved so far. Used to detect the
1717 * Billion Laughs and Quadratic Blowup attacks. */
1818 public placeables : number = 0 ;
1919
2020 constructor (
2121 bundle : FluentBundle ,
2222 errors : Array < Error > | null ,
23- args : Record < string , FluentArgument > | null ,
23+ args : Record < string , FluentVariable > | null ,
2424 ) {
2525 this . bundle = bundle ;
2626 this . errors = errors ;
0 commit comments