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); } }
public FuncRefArgInfo(ScriptFile sf, int charIndex, int charLength) { SF = sf; CharIndex = charIndex; CharLength = charLength; NppInfo = new NppElementInfo(charIndex, charLength); }
private ErrorInfo(ScriptFile sf, int charIndex, int charLength, int lineIndex) { SF = sf; CurCharIndex = charIndex; CurCharLength = charLength; CurLineIndex = lineIndex; NppInfo = new NppElementInfo(charIndex, charLength); }
private ConstRefInfo(ScriptFile sf, int charIndex, int charLength, string codePart) { SF = sf; CharIndex = charIndex; CharLength = charLength; CodePart = codePart; NppInfo = new NppElementInfo(charIndex, charLength); }
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); } }
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); }
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); }
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); } }