Example #1
0
        public override void Visit(ConstantVariable constantVariable)
        {
            var identInfo = new IdentifierInfo
            {
                name       = constantVariable.VariableName,
                typeAST    = null,
                position   = _currentNodePosition,
                scopeId    = _currentScope.id,
                isConstant = true
            };

            AddIdentInfoToSymTable(identInfo);

            IdentifiersToBeInferred.Add(new IdentExpr
            {
                identInfo = identInfo,
                expr      = constantVariable.ExpressionValue,
                file      = _symTable.FilePath
            });

            if (_currentScope.id != 0)
            {
                return;
            }

            GlobalIdentifiers.Add(constantVariable.VariableName);
        }
Example #2
0
 public override void Visit(ConstantVariable constantVariable)
 {
 }
Example #3
0
 public virtual void Visit(ConstantVariable constantVariable)
 {
 }