- namespace Ink.Parsed
- {
- public class ConstantDeclaration : Parsed.Object
- {
- public string constantName
- {
- get { return constantIdentifier?.name; }
- }
- public Identifier constantIdentifier { get; protected set; }
- public Expression expression { get; protected set; }
- public ConstantDeclaration (Identifier name, Expression assignedExpression)
- {
- this.constantIdentifier = name;
-
- if( assignedExpression )
- this.expression = AddContent(assignedExpression);
- }
- public override Runtime.Object GenerateRuntimeObject ()
- {
-
-
-
- return null;
- }
- public override void ResolveReferences (Story context)
- {
- base.ResolveReferences (context);
- context.CheckForNamingCollisions (this, constantIdentifier, Story.SymbolType.Var);
- }
- public override string typeName {
- get {
- return "Constant";
- }
- }
- }
- }