public static Create ( ) : |
||
return |
/// <summary> /// Initializes a new instance of the <see cref="PropertyDeclarationTranslationUnit"/> class. /// </summary> /// <param name="name"></param> /// <param name="returnType"></param> /// <param name="visibility"></param> protected PropertyDeclarationTranslationUnit(ITranslationUnit name, ITranslationUnit returnType, VisibilityToken visibility) : base(name, visibility) { // We create empty groups this.getStatements = StatementsGroupTranslationUnit.Create(); this.setStatements = StatementsGroupTranslationUnit.Create(); this.type = returnType; this.hasGet = true; this.hasSet = true; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyDeclarationTranslationUnit"/> class. /// </summary> /// <param name="name"></param> /// <param name="returnType"></param> /// <param name="modifiers"></param> protected PropertyDeclarationTranslationUnit(ITranslationUnit name, ITranslationUnit returnType, ModifierTokens modifiers) : base(name, modifiers) { // We create empty groups this.getStatements = StatementsGroupTranslationUnit.Create(); this.setStatements = StatementsGroupTranslationUnit.Create(); this.type = returnType; this.hasGet = true; this.hasSet = true; }