Skip to content

Commit df9ee87

Browse files
committed
Remove Scope.variables
1 parent bd79e5a commit df9ee87

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

format/resolver/scope.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@ import {NoneValue, StringValue, Value} from "./value";
55

66
export class Scope {
77
private readonly messages: Map<string, Message>;
8-
private readonly variables: Map<string, Value>;
98
public errors: Array<ScopeError>;
109

1110
constructor(messages: Map<string, Message>, variables: Map<string, Value>) {
1211
this.messages = messages;
13-
this.variables = variables;
1412
this.errors = [];
1513
}
1614

1715
resolveExpression(node: ast.Expression): Value {
1816
switch (node.type) {
1917
case ast.NodeType.StringLiteral:
20-
return this.resolveStringLiteral(node as ast.StringLiteral);
18+
return this.resolveStringLiteral(node);
2119
case ast.NodeType.MessageReference:
22-
return this.resolveMessageReference(node as ast.MessageReference);
20+
return this.resolveMessageReference(node);
2321
default:
2422
throw new TypeError("Unknown node type.");
2523
}

0 commit comments

Comments
 (0)