Esempio n. 1
0
        public static Unchecked Create(Context cx, CheckedStatementSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new Unchecked(cx, node, parent, child);

            ret.TryPopulate();
            return(ret);
        }
Esempio n. 2
0
 protected Statement(Context cx, Kinds.StmtKind kind, IStatementParentEntity parent, int child)
     : base(cx)
 {
     this.kind   = kind;
     this.parent = parent;
     this.child  = child;
 }
Esempio n. 3
0
        public static Try Create(Context cx, TryStatementSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new Try(cx, node, parent, child);

            ret.TryPopulate();
            return(ret);
        }
Esempio n. 4
0
        public static Block Create(Context cx, BlockSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new Block(cx, node, parent, child);

            ret.TryPopulate();
            return(ret);
        }
Esempio n. 5
0
        public static ForEach Create(Context cx, ForEachStatementSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new ForEach(cx, node, parent, child);

            ret.TryPopulate();
            return(ret);
        }
 protected Statement(Context cx, TSyntax stmt, Kinds.StmtKind kind, IStatementParentEntity parent, int child, Location location)
     : base(cx, kind, parent, child)
 {
     Stmt          = stmt;
     this.location = location;
     cx.BindComments(this, location.Symbol);
 }
Esempio n. 7
0
 Block(Context cx, BlockSyntax block, IStatementParentEntity parent, int child)
     : base(cx, block, StmtKind.BLOCK, parent, child)
 {
 }
Esempio n. 8
0
 ExpressionStatement(Context cx, ExpressionStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, Kinds.StmtKind.EXPR, parent, child)
 {
 }
Esempio n. 9
0
 private Unsafe(Context cx, UnsafeStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.UNSAFE, parent, child)
 {
 }
Esempio n. 10
0
 private Using(Context cx, UsingStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.USING, parent, child)
 {
 }
Esempio n. 11
0
 private Do(Context cx, DoStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.DO, parent, child, cx.CreateLocation(node.GetLocation()))
 {
 }
 protected Statement(Context cx, TSyntax stmt, Kinds.StmtKind kind, IStatementParentEntity parent, int child)
     : this(cx, stmt, kind, parent, child, cx.CreateLocation(stmt.FixedLocation()))
 {
 }
Esempio n. 13
0
 Fixed(Context cx, FixedStatementSyntax @fixed, IStatementParentEntity parent, int child)
     : base(cx, @fixed, StmtKind.FIXED, parent, child)
 {
 }
Esempio n. 14
0
 private Break(Context cx, BreakStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.BREAK, parent, child)
 {
 }
Esempio n. 15
0
 Switch(Context cx, SwitchStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.SWITCH, parent, child)
 {
 }
Esempio n. 16
0
 private If(Context cx, IfStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.IF, parent, child)
 {
 }
Esempio n. 17
0
 internal static void stmt_parent_top_level(this TextWriter trapFile, Statement stmt, int child, IStatementParentEntity parent)
 {
     trapFile.WriteTuple("stmt_parent_top_level", stmt, child, parent);
 }
Esempio n. 18
0
 Unchecked(Context cx, CheckedStatementSyntax stmt, IStatementParentEntity parent, int child)
     : base(cx, stmt, StmtKind.UNCHECKED, parent, child)
 {
 }
Esempio n. 19
0
 Goto(Context cx, GotoStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, GetKind(node), parent, child)
 {
 }
 LocalFunction(Context cx, LocalFunctionStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.LOCAL_FUNCTION, parent, child, cx.Create(node.GetLocation()))
 {
 }
Esempio n. 21
0
 For(Context cx, ForStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.FOR, parent, child)
 {
 }
Esempio n. 22
0
 Return(Context cx, ReturnStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.RETURN, parent, child)
 {
 }
Esempio n. 23
0
 Empty(Context cx, EmptyStatementSyntax block, IStatementParentEntity parent, int child)
     : base(cx, block, StmtKind.EMPTY, parent, child)
 {
 }
Esempio n. 24
0
 internal static Tuple stmt_parent_top_level(Statement stmt, int child, IStatementParentEntity parent) => new Tuple("stmt_parent_top_level", stmt, child, parent);
        public static LocalFunction Create(Context cx, LocalFunctionStatementSyntax node, IStatementParentEntity parent, int child)
        {
            var ret = new LocalFunction(cx, node, parent, child);

            ret.TryPopulate();
            return(ret);
        }
Esempio n. 26
0
 Lock(Context cx, LockStatementSyntax @lock, IStatementParentEntity parent, int child)
     : base(cx, @lock, StmtKind.LOCK, parent, child)
 {
 }
Esempio n. 27
0
 private Try(Context cx, TryStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.TRY, parent, child)
 {
 }
Esempio n. 28
0
 private While(Context cx, WhileStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.WHILE, parent, child)
 {
 }
Esempio n. 29
0
 ForEach(Context cx, ForEachStatementSyntax stmt, IStatementParentEntity parent, int child)
     : base(cx, stmt, StmtKind.FOREACH, parent, child)
 {
 }
Esempio n. 30
0
 private Yield(Context cx, YieldStatementSyntax node, IStatementParentEntity parent, int child)
     : base(cx, node, StmtKind.YIELD, parent, child)
 {
 }