Example #1
0
 public ExceptionHandler(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Try = new Expression(this, null);
     CatchClauses = new List<CatchClause>();
     Finally = new Expression(this, null);
 }
Example #2
0
 public Instantiation(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Parameters = new Expression(null, null);
     GenericTypes = new List<string>();
     IsArray = false;
 }
Example #3
0
 public Enum(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Constants = new List<EnumConstant>();
     UnqualifiedName = "";
     Accessibility = Accessibility.Public;
 }
Example #4
0
 public Interface(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     UnqualifiedName = "";
     Accessibility = Accessibility.Public;
     BaseTypeNames = new List<string>();
     GenericTypeNames = new List<string>();
 }
Example #5
0
 public Expression(Expression parentExpression, Token token)
 {
     ChildExpressions = new List<Expression>();
     ParentExpression = parentExpression;
     Token = token;
     Imports = new List<Import>();
     Validated = false;
 }
Example #6
0
        public MethodInvocation(Expression parentExpression, Token token)
            : base(parentExpression, token)
        {
            Prefix = "";

            Parameters = new Expression(this, null);
            GenericTypes = new List<string>();
        }
Example #7
0
        // Convert an Irony token to one that is independant of Irony.
        public Pie.Expressions.Token ConvertToken(Irony.Parsing.Token ironyToken)
        {
            var t = new Pie.Expressions.Token();

            t.Column   = ironyToken.Location.Column;
            t.Line     = ironyToken.Location.Line;
            t.Position = ironyToken.Location.Position;
            return(t);
        }
Example #8
0
 public Constructor(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Parameters = new List<Expression>();
     SubParameters = new Expression(this, null);
     Accessibility = Expressions.Accessibility.Public;
     // Default to no sub constructor.
     Sub = false;
 }
Example #9
0
 public DelegateDeclaration(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     ReturnTypeName = "";
     Name = "";
     Accessibility = Expressions.Accessibility.Public;
     GenericTypeNames = new List<string>();
     Parameters = new List<Expression>();
     IsShared = false;
 }
Example #10
0
 public Class(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     IsFinal = false;
     UnqualifiedName = "";
     Accessibility = Accessibility.Public;
     IsModule = false;
     IsStruct = false;
     IsPartial = false;
     IsAbstract = false;
     BaseTypeNames = new List<string>();
     GenericTypeNames = new List<string>();
 }
Example #11
0
        public MethodDeclaration(Expression parentExpression, Token token)
            : base(parentExpression, token)
        {
            GenericTypeNames = new List<string>();
            Parameters = new List<Expression>();

            ReturnTypeName = null;
            Accessibility = Accessibility.Public;
            if(parentExpression is Class)
                if ((parentExpression as Class).IsModule)
                    IsShared = true;
                else
                    IsShared = false;
            IsOverride = false;
            IsAbstract = false;
            IsFinal = false;
            IsVirtual = false;
        }
Example #12
0
 public CatchClause(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
 }
Example #13
0
 public Literal(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
 }
Example #14
0
 // Convert an Irony token to one that is independant of Irony.
 public Pie.Expressions.Token ConvertToken(Irony.Parsing.Token ironyToken)
 {
     var t = new Pie.Expressions.Token();
     t.Column = ironyToken.Location.Column;
     t.Line = ironyToken.Location.Line;
     t.Position = ironyToken.Location.Position;
     return t;
 }
 public ExplicitVariableDeclaration(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     GenericTypes = new List<string>();
 }