/// <summary> /// Creates a new parse tree for a Sub declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="typeParameters">The type parameters on the declaration, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="implementsList">The list of implemented members.</param> /// <param name="handlesList">The list of handled events.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endDeclaration">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public SubDeclaration( AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, NameCollection implementsList, NameCollection handlesList, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base( TreeType.SubDeclaration, attributes, modifiers, keywordLocation, name, typeParameters, parameters, Location.Empty, null, null, implementsList, handlesList, statements, endDeclaration, span, comments) { }
/// <summary> /// Constructs a parse tree for an event declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type, if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="implementsList">The list of implemented members.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public EventDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, Span span, IList <Comment> comments) : base(TreeType.EventDeclaration, attributes, modifiers, keywordLocation, name, null, parameters, asLocation, resultTypeAttributes, resultType, span, comments) { SetParent(implementsList); _ImplementsList = implementsList; }
protected DelegateDeclaration(TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location subOrFunctionLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, Span span, IList <Comment> comments) : base(type, attributes, modifiers, keywordLocation, name, typeParameters, parameters, asLocation, resultTypeAttributes, resultType, span, comments) { Debug.Assert(type == TreeType.DelegateSubDeclaration || type == TreeType.DelegateFunctionDeclaration); _SubOrFunctionLocation = subOrFunctionLocation; }
protected ModifiedDeclaration(TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Span span, IList <Comment> comments) : base(type, span, comments) { SetParent(attributes); SetParent(modifiers); _Attributes = attributes; _Modifiers = modifiers; }
/// <summary> /// Constructs a parse tree for an Enum declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="elementType">The element type of the enumerated type, if any.</param> /// <param name="declarations">The enumerated values.</param> /// <param name="endStatement">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public EnumDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, Location asLocation, TypeName elementType, DeclarationCollection declarations, EndBlockDeclaration endStatement, Span span, IList <Comment> comments ) : base(TreeType.EnumDeclaration, attributes, modifiers, keywordLocation, name, declarations, endStatement, span, comments) { SetParent(elementType); _AsLocation = asLocation; _ElementType = elementType; }
protected GenericBlockDeclaration(TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, DeclarationCollection declarations, EndBlockDeclaration endStatement, Span span, IList <Comment> comments ) : base(type, attributes, modifiers, keywordLocation, name, declarations, endStatement, span, comments) { Debug.Assert(type == TreeType.ClassDeclaration || type == TreeType.InterfaceDeclaration || type == TreeType.StructureDeclaration); SetParent(typeParameters); _TypeParameters = typeParameters; }
/// <summary> /// Constructs a new parse tree for a Get property accessor. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="getLocation">The location of the 'Get'.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endDeclaration">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public GetAccessorDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location getLocation, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.GetAccessorDeclaration, attributes, modifiers, span, comments) { SetParent(statements); SetParent(endDeclaration); _GetLocation = getLocation; _Statements = statements; _EndDeclaration = endDeclaration; }
/// <summary> /// Constructs a parse tree for variable declarations. /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="modifiers">The modifiers on the declaration.</param> /// <param name="variableDeclarators">The variables being declared.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public VariableListDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, VariableDeclaratorCollection variableDeclarators, Span span, IList <Comment> comments) : base(TreeType.VariableListDeclaration, attributes, modifiers, span, comments) { if (variableDeclarators == null) { throw new ArgumentNullException("variableDeclarators"); } SetParent(variableDeclarators); _VariableDeclarators = variableDeclarators; }
/// <summary> /// Constructs a new parse tree for assembly-level or module-level attribute declarations. /// </summary> /// <param name="attributes">The attributes.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public AttributeDeclaration(AttributeBlockCollection attributes, Span span, IList <Comment> comments) : base(TreeType.AttributeDeclaration, span, comments) { if (attributes == null) { throw new ArgumentNullException("attributes"); } SetParent(attributes); _Attributes = attributes; }
/// <summary> /// Constructs a new parse tree for a property accessor. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="raiseEventLocation">The location of the 'RaiseEvent'.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endStatement">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public RaiseEventAccessorDeclaration(AttributeBlockCollection attributes, Location raiseEventLocation, ParameterCollection parameters, StatementCollection statements, EndBlockDeclaration endStatement, Span span, IList <Comment> comments) : base(TreeType.RaiseEventAccessorDeclaration, attributes, null, span, comments) { SetParent(parameters); SetParent(statements); SetParent(endStatement); _Parameters = parameters; _RaiseEventLocation = raiseEventLocation; _Statements = statements; _EndStatement = endStatement; }
/// <summary> /// Constructs a new parse tree for a custom property declaration. /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="modifiers">The modifiers on the declaration.</param> /// <param name="customLocation">The location of the 'Custom' keyword.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the custom event.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="implementsList">The implements list.</param> /// <param name="accessors">The custom event accessors.</param> /// <param name="endDeclaration">The End Event declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public CustomEventDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location customLocation, Location keywordLocation, SimpleName name, Location asLocation, TypeName resultType, NameCollection implementsList, DeclarationCollection accessors, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.CustomEventDeclaration, attributes, modifiers, keywordLocation, name, null, null, asLocation, null, resultType, span, comments) { SetParent(accessors); SetParent(endDeclaration); SetParent(implementsList); _CustomLocation = customLocation; _ImplementsList = implementsList; _Accessors = accessors; _EndDeclaration = endDeclaration; }
protected MethodDeclaration( TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, NameCollection handlesList, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments ) : base( type, attributes, modifiers, keywordLocation, name, typeParameters, parameters, asLocation, resultTypeAttributes, resultType, span, comments ) { Debug.Assert( type == TreeType.SubDeclaration || type == TreeType.FunctionDeclaration || type == TreeType.ConstructorDeclaration || type == TreeType.OperatorDeclaration || type == TreeType.PropertyDeclaration ); SetParent(endDeclaration); SetParent(implementsList); SetParent(handlesList); SetParent(statements); _ImplementsList = implementsList; _HandlesList = handlesList; _Statements = statements; _EndDeclaration = endDeclaration; }
/// <summary> /// Constructs a new parse tree for an enumerated value. /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="name">The name of the declaration.</param> /// <param name="equalsLocation">The location of the '=', if any.</param> /// <param name="expression">The enumerated value, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public EnumValueDeclaration(AttributeBlockCollection attributes, Name name, Location equalsLocation, Expression expression, Span span, IList <Comment> comments) : base(TreeType.EnumValueDeclaration, attributes, null, span, comments) { if (name == null) { throw new ArgumentNullException("name"); } SetParent(name); SetParent(expression); _Name = name; _EqualsLocation = equalsLocation; _Expression = expression; }
protected ExternalDeclaration(TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location charsetLocation, Charset charset, Location subOrFunctionLocation, SimpleName name, Location libLocation, StringLiteralExpression libLiteral, Location aliasLocation, StringLiteralExpression aliasLiteral, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, Span span, IList <Comment> comments) : base(type, attributes, modifiers, keywordLocation, name, null, parameters, asLocation, resultTypeAttributes, resultType, span, comments) { SetParent(libLiteral); SetParent(aliasLiteral); _CharsetLocation = charsetLocation; _Charset = charset; _SubOrFunctionLocation = subOrFunctionLocation; _LibLocation = libLocation; _LibLiteral = libLiteral; _AliasLocation = aliasLocation; _AliasLiteral = aliasLiteral; }
/// <summary> /// Constructs a parse tree for a namespace VBConverter.CodeParser.declaration. /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="modifiers">The modifiers on the declaration.</param> /// <param name="namespaceLocation">The location of 'Namespace'.</param> /// <param name="name">The name of the namespace.</param> /// <param name="declarations">The declarations in the namespace.</param> /// <param name="endDeclaration">The End Namespace statement, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public NamespaceDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location namespaceLocation, Name name, DeclarationCollection declarations, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.NamespaceDeclaration, attributes, modifiers, span, comments) { if (name == null) { throw new ArgumentNullException("name"); } SetParent(name); SetParent(declarations); SetParent(endDeclaration); _NamespaceLocation = namespaceLocation; _Name = name; _Declarations = declarations; _EndDeclaration = endDeclaration; }
protected BlockDeclaration(TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, DeclarationCollection declarations, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(type, attributes, modifiers, span, comments) { Debug.Assert(type == TreeType.ClassDeclaration || type == TreeType.ModuleDeclaration || type == TreeType.InterfaceDeclaration || type == TreeType.StructureDeclaration || type == TreeType.EnumDeclaration); if (name == null) { throw new ArgumentNullException("name"); } SetParent(name); SetParent(declarations); SetParent(endDeclaration); _KeywordLocation = keywordLocation; _Name = name; _Declarations = declarations; _EndDeclaration = endDeclaration; }
/// <summary> /// Constructs a new parameter parse tree. /// </summary> /// <param name="attributes">The attributes on the parameter.</param> /// <param name="modifiers">The modifiers on the parameter.</param> /// <param name="variableName">The name of the parameter.</param> /// <param name="asLocation">The location of the 'As'.</param> /// <param name="parameterType">The type of the parameter. Can be Nothing.</param> /// <param name="equalsLocation">The location of the '='.</param> /// <param name="initializer">The initializer for the parameter. Can be Nothing.</param> /// <param name="span">The location of the parse tree.</param> public Parameter(AttributeBlockCollection attributes, ModifierCollection modifiers, VariableName variableName, Location asLocation, TypeName parameterType, Location equalsLocation, Initializer initializer, Span span) : base(TreeType.Parameter, span) { if (variableName == null) { throw new ArgumentNullException("variableName"); } SetParent(attributes); SetParent(modifiers); SetParent(variableName); SetParent(parameterType); SetParent(initializer); _Attributes = attributes; _Modifiers = modifiers; _VariableName = variableName; _AsLocation = asLocation; _ParameterType = parameterType; _EqualsLocation = equalsLocation; _Initializer = initializer; }
/// <summary> /// Constructs a new parse tree for a property declaration (VB6). /// </summary> /// <param name="attributes">The attributes on the declaration.</param> /// <param name="modifiers">The modifiers on the declaration.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the property.</param> /// <param name="parameters">The parameters of the property.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="implementsList">The implements list.</param> /// <param name="accessors">The property accessors.</param> /// <param name="statements">The property statements (VB6)</param> /// <param name="endDeclaration">The End Property declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public PropertyDeclaration( AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, GetAccessorDeclaration getAccessor, SetAccessorDeclaration setAccessor, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments ) : base( TreeType.PropertyDeclaration, attributes, modifiers, keywordLocation, name, null, parameters, asLocation, resultTypeAttributes, resultType, implementsList, null, null, endDeclaration, span, comments) { GetAccessor = getAccessor; SetAccessor = setAccessor; }
protected SignatureDeclaration( TreeType type, AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, Span span, IList <Comment> comments ) : base( type, attributes, modifiers, span, comments ) { SetParent(name); SetParent(typeParameters); SetParent(parameters); SetParent(resultType); SetParent(resultTypeAttributes); _KeywordLocation = keywordLocation; _Name = name; _TypeParameters = typeParameters; _Parameters = parameters; _AsLocation = asLocation; _ResultTypeAttributes = resultTypeAttributes; _ResultType = resultType; }
/// <summary> /// Constructs a new parse tree for a delegate Sub declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="subLocation">The location of the 'Sub'.</param> /// <param name="name">The name of the declaration.</param> /// <param name="typeParameters">The type parameters of the declaration, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public DelegateSubDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location subLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Span span, IList <Comment> comments) : base(TreeType.DelegateSubDeclaration, attributes, modifiers, keywordLocation, subLocation, name, typeParameters, parameters, Location.Empty, null, null, span, comments) { }
/// <summary> /// Constructs a new parse tree for a Class declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="typeParameters">The type parameters of the type, if any.</param> /// <param name="declarations">The declarations in the block.</param> /// <param name="endStatement">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public ClassDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, DeclarationCollection declarations, EndBlockDeclaration endStatement, Span span, IList <Comment> comments) : base(TreeType.ClassDeclaration, attributes, modifiers, keywordLocation, name, typeParameters, declarations, endStatement, span, comments ) { }
/// <summary> /// Creates a new parse tree for a Function declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="typeParameters">The type parameters on the declaration, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type, if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="implementsList">The list of implemented members.</param> /// <param name="handlesList">The list of handled events.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endDeclaration">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public FunctionDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, NameCollection implementsList, NameCollection handlesList, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.FunctionDeclaration, attributes, modifiers, keywordLocation, name, typeParameters, parameters, asLocation, resultTypeAttributes, resultType, implementsList, handlesList, statements, endDeclaration, span, comments) { }
/// <summary> /// Creates a new parse tree for a constructor declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="name">The name of the declaration.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endDeclaration">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public ConstructorDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, SimpleName name, ParameterCollection parameters, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.ConstructorDeclaration, attributes, modifiers, keywordLocation, name, null, parameters, Location.Empty, null, null, null, null, statements, endDeclaration, span, comments) { }
/// <summary> /// Creates a new parse tree for an overloaded operator declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="operatorToken">The operator being overloaded.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type, if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="statements">The statements in the declaration.</param> /// <param name="endDeclaration">The end block declaration, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public OperatorDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Token operatorToken, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, StatementCollection statements, EndBlockDeclaration endDeclaration, Span span, IList <Comment> comments) : base(TreeType.OperatorDeclaration, attributes, modifiers, keywordLocation, null, null, parameters, asLocation, resultTypeAttributes, resultType, null, null, statements, endDeclaration, span, comments) { _OperatorToken = operatorToken; }
/// <summary> /// Constructs a new parse tree for a delegate declaration. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="functionLocation">The location of the 'Function'.</param> /// <param name="name">The name of the declaration.</param> /// <param name="typeParameters">The type parameters of the declaration, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type, if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public DelegateFunctionDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location functionLocation, SimpleName name, TypeParameterCollection typeParameters, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, Span span, IList <Comment> comments) : base(TreeType.DelegateFunctionDeclaration, attributes, modifiers, keywordLocation, functionLocation, name, typeParameters, parameters, asLocation, resultTypeAttributes, resultType, span, comments) { }
/// <summary> /// Constructs a parse tree for a Declare Function statement. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="charsetLocation">The location of the 'Ansi', 'Auto' or 'Unicode', if any.</param> /// <param name="charset">The charset.</param> /// <param name="functionLocation">The location of 'Function'.</param> /// <param name="name">The name of the declaration.</param> /// <param name="libLocation">The location of 'Lib', if any.</param> /// <param name="libLiteral">The library, if any.</param> /// <param name="aliasLocation">The location of 'Alias', if any.</param> /// <param name="aliasLiteral">The alias, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="asLocation">The location of the 'As', if any.</param> /// <param name="resultTypeAttributes">The attributes on the result type, if any.</param> /// <param name="resultType">The result type, if any.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public ExternalFunctionDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location charsetLocation, Charset charset, Location functionLocation, SimpleName name, Location libLocation, StringLiteralExpression libLiteral, Location aliasLocation, StringLiteralExpression aliasLiteral, ParameterCollection parameters, Location asLocation, AttributeBlockCollection resultTypeAttributes, TypeName resultType, Span span, IList <Comment> comments) : base(TreeType.ExternalFunctionDeclaration, attributes, modifiers, keywordLocation, charsetLocation, charset, functionLocation, name, libLocation, libLiteral, aliasLocation, aliasLiteral, parameters, asLocation, resultTypeAttributes, resultType, span, comments) { }
/// <summary> /// Constructs a parse tree for a Declare Sub statement. /// </summary> /// <param name="attributes">The attributes for the parse tree.</param> /// <param name="modifiers">The modifiers for the parse tree.</param> /// <param name="keywordLocation">The location of the keyword.</param> /// <param name="charsetLocation">The location of the 'Ansi', 'Auto' or 'Unicode', if any.</param> /// <param name="charset">The charset.</param> /// <param name="subLocation">The location of 'Sub'.</param> /// <param name="name">The name of the declaration.</param> /// <param name="libLocation">The location of 'Lib', if any.</param> /// <param name="libLiteral">The library, if any.</param> /// <param name="aliasLocation">The location of 'Alias', if any.</param> /// <param name="aliasLiteral">The alias, if any.</param> /// <param name="parameters">The parameters of the declaration.</param> /// <param name="span">The location of the parse tree.</param> /// <param name="comments">The comments for the parse tree.</param> public ExternalSubDeclaration(AttributeBlockCollection attributes, ModifierCollection modifiers, Location keywordLocation, Location charsetLocation, Charset charset, Location subLocation, SimpleName name, Location libLocation, StringLiteralExpression libLiteral, Location aliasLocation, StringLiteralExpression aliasLiteral, ParameterCollection parameters, Span span, IList <Comment> comments) : base(TreeType.ExternalSubDeclaration, attributes, modifiers, keywordLocation, charsetLocation, charset, subLocation, name, libLocation, libLiteral, aliasLocation, aliasLiteral, parameters, Location.Empty, null, null, span, comments) { }