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; }
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; }
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; }
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; }
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; }
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; }