예제 #1
0
        public ConstInfo(ScriptFile sf,
                         string name,
                         string originalValue,
                         CODSCRIPT.Content.Expression value,
                         MemberAccess access,
                         string summary,
                         bool isSealed,
                         CODSCRIPT.Content.ConstDef def)
        {
            SF = sf;

            Name          = name;
            Summary       = summary;
            OriginalValue = originalValue;
            Value         = value;
            Access        = access;
            Sealed        = isSealed;

            ConstDef = def;

            if (def != null)
            {
                NppInfo = new NppElementInfo(def.CharIndex, def.CharLength, def.ImportantCharIndex, def.ImportantCharLength);
            }
        }
예제 #2
0
        public FuncRefArgInfo(ScriptFile sf, int charIndex, int charLength)
        {
            SF = sf;

            CharIndex  = charIndex;
            CharLength = charLength;

            NppInfo = new NppElementInfo(charIndex, charLength);
        }
예제 #3
0
        private ErrorInfo(ScriptFile sf, int charIndex, int charLength, int lineIndex)
        {
            SF = sf;

            CurCharIndex  = charIndex;
            CurCharLength = charLength;
            CurLineIndex  = lineIndex;

            NppInfo = new NppElementInfo(charIndex, charLength);
        }
예제 #4
0
        private ConstRefInfo(ScriptFile sf, int charIndex, int charLength, string codePart)
        {
            SF = sf;

            CharIndex  = charIndex;
            CharLength = charLength;
            CodePart   = codePart;

            NppInfo = new NppElementInfo(charIndex, charLength);
        }
예제 #5
0
        public UsingInfo(ScriptFile sf, string name, string sfPath, MemberAccess access, CODSCRIPT.Content.UsingDef def)
        {
            SF     = sf;
            Name   = name;
            SFPath = sfPath;
            Access = access;

            if (def != null)
            {
                NppInfo = new NppElementInfo(def.CharIndex, def.CharLength, def.ImportantCharIndex, def.ImportantCharLength);
            }
        }
예제 #6
0
        public LocalVarInfo(ScriptFile sf, string name, int charIndex, int charLength, CODSCRIPT.Content.Assign assignDef, CODSCRIPT.Content.VarName varNameDef)
        {
            SF         = sf;
            Name       = name;
            StartIndex = charIndex;

            RefCount   = 0;
            AssignDef  = assignDef;
            VarNameDef = varNameDef;

            NppInfo = new NppElementInfo(charIndex, charLength);
        }
예제 #7
0
        private FuncRefInfo(ScriptFile sf, int charIndex, int charLength, string codePart, bool isCall)
        {
            SF = sf;

            CharIndex  = charIndex;
            CharLength = charLength;
            CodePart   = codePart;

            if (isCall)
            {
                Arguments = new List <FuncRefArgInfo>();
            }

            NppInfo = new NppElementInfo(charIndex, charLength);
        }
예제 #8
0
        public FuncInfo(ScriptFile sf, string name, MemberAccess access, string summary, string returns, string self, string example, CODSCRIPT.Content.FuncDef def)
        {
            SF = sf;

            Name       = name;
            Summary    = summary;
            Access     = access;
            Returns    = returns;
            Parameters = new List <FuncParamInfo>();
            Self       = self;
            Example    = example;

            HasOutParams       = false;
            OptParamStartIndex = null;

            if (def != null)
            {
                LocalVars = def.LocalVars;
                NppInfo   = new NppElementInfo(def.CharIndex, def.CharLength, def.ImportantCharIndex, def.ImportantCharLength);
            }
        }