Esempio n. 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);
 }
Esempio n. 2
0
 public Instantiation(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Parameters = new Expression(null, null);
     GenericTypes = new List<string>();
     IsArray = false;
 }
Esempio n. 3
0
 public Enum(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     Constants = new List<EnumConstant>();
     UnqualifiedName = "";
     Accessibility = Accessibility.Public;
 }
Esempio n. 4
0
 public Interface(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
     UnqualifiedName = "";
     Accessibility = Accessibility.Public;
     BaseTypeNames = new List<string>();
     GenericTypeNames = new List<string>();
 }
Esempio n. 5
0
 public Expression(Expression parentExpression, Token token)
 {
     ChildExpressions = new List<Expression>();
     ParentExpression = parentExpression;
     Token = token;
     Imports = new List<Import>();
     Validated = false;
 }
Esempio n. 6
0
        public MethodInvocation(Expression parentExpression, Token token)
            : base(parentExpression, token)
        {
            Prefix = "";

            Parameters = new Expression(this, null);
            GenericTypes = new List<string>();
        }
Esempio n. 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);
        }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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>();
 }
Esempio n. 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;
        }
Esempio n. 12
0
 public CatchClause(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
 }
Esempio n. 13
0
 public Literal(Expression parentExpression, Token token)
     : base(parentExpression, token)
 {
 }
Esempio n. 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>();
 }