Beispiel #1
0
        public ArgumentVariable(int index, string name, LexicalScope parentScope, IChelaType type)
            : base(type, parentScope.GetModule())
        {
            base.SetName(name);
            this.parentScope = parentScope;

            // Add the variable into the scope.
            this.index = index;
            parentScope.AddArgument(this);
        }
Beispiel #2
0
        public ArgumentVariable(int index, string name, LexicalScope parentScope, IChelaType type)
            : base(type, parentScope.GetModule())
        {
            base.SetName(name);
            this.parentScope = parentScope;

            // Add the variable into the scope.
            this.index = index;
            parentScope.AddArgument(this);
        }
Beispiel #3
0
        public LocalVariable(string name, LexicalScope parentScope, IChelaType type, bool pseudoLocal)
            : base(type, parentScope.GetModule())
        {
            base.SetName(name);
            this.parentScope = parentScope;

            // Add the variable into this.
            this.isPseudoLocal = pseudoLocal;
            this.index = parentScope.AddLocal(this);
            this.argumentIndex = -1;
            this.position = null;

            // Check for generated locals.
            if(name.StartsWith("._gsym"))
                localType = LocalType.Generated;
        }
Beispiel #4
0
        public LocalVariable(string name, LexicalScope parentScope, IChelaType type, bool pseudoLocal)
            : base(type, parentScope.GetModule())
        {
            base.SetName(name);
            this.parentScope = parentScope;

            // Add the variable into this.
            this.isPseudoLocal = pseudoLocal;
            this.index         = parentScope.AddLocal(this);
            this.argumentIndex = -1;
            this.position      = null;

            // Check for generated locals.
            if (name.StartsWith("._gsym"))
            {
                localType = LocalType.Generated;
            }
        }