internal void AddAfter(string name) { NameSpaceDefinition definition = new NameSpaceDefinition(name); ContainNameSpaces.Add(name, definition); definition.PreviousNameSpace = this; }
public CustomDefinition(string name, NameSpaceDefinition nameSpace, AccessLevel accessLevel, bool isStatic) { Name = name; NameSpace = nameSpace; AccessLevel = accessLevel; IsStatic = isStatic; }
public InterfaceDefinition(Token @interface, Token name, Token colon, Token inheritanceName, NameSpaceDefinition nameSpace, AccessLevel accessLevel) : base(name.Content, nameSpace, accessLevel, false) { _interface = @interface; _name = name; _colon = colon; _inheritanceName = inheritanceName; }
public StructDefinition(Token @struct, Token name, Token colon, Token inheritanceToken, NameSpaceDefinition nameSpace, AccessLevel accessLevel) : base(name.Content, nameSpace, accessLevel, false) { _struct = @struct; _name = name; _colon = colon; _inheritanceToken = inheritanceToken; }
internal bool AddNameSpace(NameSpaceDefinition nameSpaceDefinition) { if (ContainNameSpaces.ContainsKey(nameSpaceDefinition.Name)) { return(false); } ContainNameSpaces.Add(nameSpaceDefinition.Name, nameSpaceDefinition); return(true); }
public ClassDefinition(Token @class, Token name, Token colon, Token inheritanceToken, string inheritanceName, NameSpaceDefinition nameSpace, AccessLevel accessLevel, bool isStatic) : base(name.Content, nameSpace, accessLevel, isStatic) { _class = @class; _name = name; _colon = colon; _inheritanceToken = inheritanceToken; InheritanceName = inheritanceName; }
public bool IsContain(NameSpaceDefinition nameSpaceDefinition) => ContainNameSpaces.ContainsKey(nameSpaceDefinition.Name);
internal void AddAfter(NameSpaceDefinition nameSpaceDefinition) { ContainNameSpaces.Add(nameSpaceDefinition.Name, nameSpaceDefinition); nameSpaceDefinition.PreviousNameSpace = this; }