コード例 #1
0
        internal void AddAfter(string name)
        {
            NameSpaceDefinition definition = new NameSpaceDefinition(name);

            ContainNameSpaces.Add(name, definition);
            definition.PreviousNameSpace = this;
        }
コード例 #2
0
 public CustomDefinition(string name, NameSpaceDefinition nameSpace, AccessLevel accessLevel, bool isStatic)
 {
     Name        = name;
     NameSpace   = nameSpace;
     AccessLevel = accessLevel;
     IsStatic    = isStatic;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 internal bool AddNameSpace(NameSpaceDefinition nameSpaceDefinition)
 {
     if (ContainNameSpaces.ContainsKey(nameSpaceDefinition.Name))
     {
         return(false);
     }
     ContainNameSpaces.Add(nameSpaceDefinition.Name, nameSpaceDefinition);
     return(true);
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 public bool IsContain(NameSpaceDefinition nameSpaceDefinition) => ContainNameSpaces.ContainsKey(nameSpaceDefinition.Name);
コード例 #8
0
 internal void AddAfter(NameSpaceDefinition nameSpaceDefinition)
 {
     ContainNameSpaces.Add(nameSpaceDefinition.Name, nameSpaceDefinition);
     nameSpaceDefinition.PreviousNameSpace = this;
 }