示例#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);
        }
示例#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);
        }
示例#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;
        }
示例#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;
            }
        }