mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
68 lines
1.7 KiB
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
using System.Collections.Generic; |
|
|
|
namespace VBDomGenerator.Dom |
|
{ |
|
interface INode {} |
|
interface INullable {} |
|
struct Location {} |
|
|
|
enum Modifiers { None } |
|
|
|
[CustomImplementation] |
|
abstract class AbstractNode : INode {} |
|
|
|
abstract class AttributedNode : AbstractNode |
|
{ |
|
List<AttributeSection> attributes; |
|
Modifiers modifier; |
|
|
|
public AttributedNode() {} |
|
public AttributedNode(List<AttributeSection> attributes) {} |
|
public AttributedNode(Modifiers modifier, List<AttributeSection> attributes) {} |
|
} |
|
|
|
abstract class ParametrizedNode : AttributedNode |
|
{ |
|
string name; |
|
List<ParameterDeclarationExpression> parameters; |
|
|
|
public ParametrizedNode() {} |
|
|
|
public ParametrizedNode(Modifiers modifier, List<AttributeSection> attributes, |
|
string name, List<ParameterDeclarationExpression> parameters) |
|
: base(modifier, attributes) |
|
{} |
|
} |
|
|
|
[CustomImplementation] |
|
class TypeReference : AbstractNode, INullable |
|
{ |
|
List<TypeReference> genericTypes; |
|
} |
|
|
|
[CustomImplementation] |
|
class InnerClassTypeReference : TypeReference |
|
{ |
|
TypeReference baseType; |
|
} |
|
|
|
class AttributeSection : AbstractNode, INullable |
|
{ |
|
string attributeTarget; |
|
List<Attribute> attributes; |
|
} |
|
|
|
class Attribute : AbstractNode |
|
{ |
|
string name; |
|
List<Expression> positionalArguments; |
|
List<NamedArgumentExpression> namedArguments; |
|
|
|
public Attribute() {} |
|
public Attribute(string name, List<Expression> positionalArguments, List<NamedArgumentExpression> namedArguments) {} |
|
} |
|
}
|
|
|