Skip to content

Instantly share code, notes, and snippets.

/AST.cs

Created Feb 16, 2013
Embed
What would you like to do?
public abstract class TypeName {
}
private sealed class BuiltInTypeName : TypeName {
private BuiltInTypeName() {
}
public static bool operator ==(BuiltInTypeName a, BuiltInTypeName b) {
return Object.ReferenceEquals(a, b);
}
public static BuiltInTypeName UByteTypeName = new BuiltInTypeName();
public static BuiltInTypeName SByteTypeName = new BuiltInTypeName();
public static BuiltInTypeName UShortTypeName = new BuiltInTypeName();
public static BuiltInTypeName SShortTypeName = new BuiltInTypeName();
public static BuiltInTypeName UIntTypeName = new BuiltInTypeName();
public static BuiltInTypeName SIntTypeName = new BuiltInTypeName();
public static BuiltInTypeName ULongTypeName = new BuiltInTypeName();
public static BuiltInTypeName SLongTypeName = new BuiltInTypeName();
}
public sealed class QualifiedTypeName : TypeName {
public IList<string> Segments { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment