Beispiel #1
0
        public DogePropertyDefinition(DogeIdentifier name,
                                      DogeMemberAccessExpression type,
                                      DogeAccessibilityModifier modifier,
                                      DogeNamelessMethodDefinition?get,
                                      DogeNamelessMethodDefinition?set,
                                      DogeFile file,
                                      Range <int> tokenRange) : base(file, tokenRange)
        {
            name.Parent    = this;
            NameIdentifier = name;
            Name           = name.Name;

            type.Parent    = this;
            TypeIdentifier = type;
            Type           = type.ToName();

            Modifier = modifier;

            if (get != null)
            {
                get.Parent = this;
            }
            Get = get;

            if (set != null)
            {
                set.Parent = this;
            }
            Set = set;
        }
Beispiel #2
0
 public DogeSymbol(string name, IList <string> fullName, DogeSymbolAttribute symbolAttribute, DogeSymbolType symbolType, DogeAccessibilityModifier accessibilityModifier, IList <string>?type, DogeNode?definition)
 {
     Name                  = name;
     FullName              = fullName;
     SymbolAttribute       = symbolAttribute;
     SymbolType            = symbolType;
     AccessibilityModifier = accessibilityModifier;
     Type                  = type;
     Definition            = definition;
 }
Beispiel #3
0
        public DogeNamedMethodDefinition(DogeIdentifier name, DogeAccessibilityModifier modifier, DogeNamelessMethodDefinition method, DogeFile file, Range <int> tokenRange) : base(file, tokenRange)
        {
            name.Parent    = this;
            NameIdentifier = name;
            Name           = name.Name;

            Modifier = modifier;

            method.Parent = this;
            Method        = method;
        }
Beispiel #4
0
 public DogeFieldDefinition(DogeIdentifier name,
                            DogeMemberAccessExpression type,
                            DogeAccessibilityModifier modifier,
                            bool isReadonly,
                            DogeNode initialValue,
                            DogeFile file,
                            Range <int> tokenRange) : this(
         name,
         type,
         modifier,
         isReadonly,
         file,
         tokenRange)
 {
     initialValue.Parent = this;
     InitialValue        = initialValue;
 }
        public DogeClassDefinition(DogeAccessibilityModifier modifier, DogeIdentifier name, ICollection <DogeFieldDefinition> fieldDefinitions, ICollection <DogePropertyDefinition> propertyDefinitions, ICollection <DogeNamedMethodDefinition> methodDefinitions, DogeFile file, Range <int> tokenRange) : base(file, tokenRange)
        {
            Modifier = modifier;

            name.Parent    = this;
            NameIdentifier = name;
            Name           = name.Name;

            fieldDefinitions.ForEach(x => x.Parent = this);
            FieldDefinitions = fieldDefinitions;

            propertyDefinitions.ForEach(x => x.Parent = this);
            PropertyDefinitions = propertyDefinitions;

            methodDefinitions.ForEach(x => x.Parent = this);
            MethodDefinitions = methodDefinitions;
        }
Beispiel #6
0
        public DogeFieldDefinition(DogeIdentifier name,
                                   DogeMemberAccessExpression type,
                                   DogeAccessibilityModifier modifier,
                                   bool isReadonly,
                                   DogeFile file,
                                   Range <int> tokenRange) : base(file, tokenRange)
        {
            name.Parent    = this;
            NameIdentifier = name;
            Name           = name.Name;

            type.Parent    = this;
            TypeIdentifier = type;
            Type           = type.ToName();

            Modifier   = modifier;
            IsReadonly = isReadonly;
        }
Beispiel #7
0
 public DogePropertyDefinition(DogeIdentifier name,
                               DogeMemberAccessExpression type,
                               DogeAccessibilityModifier modifier,
                               DogeNamelessMethodDefinition?get,
                               DogeNamelessMethodDefinition?set,
                               DogeNode?initialValue,
                               DogeFile file,
                               Range <int> tokenRange) : this(
         name,
         type,
         modifier,
         get,
         set,
         file,
         tokenRange)
 {
     if (initialValue != null)
     {
         initialValue.Parent = this;
     }
     InitialValue = initialValue;
 }