public static SyntaxListTranslation <T, TS> Get <T, TS>(this SyntaxList <T> syntaxList, SyntaxTranslation parent) where T : SyntaxNode where TS : SyntaxTranslation
        {
            var newList = new SyntaxListTranslation <T, TS>(syntaxList, parent);

            return(newList);
        }
Beispiel #2
0
 public BlockTranslation()
 {
     Statements = new SyntaxListTranslation <StatementSyntax, StatementTranslation>();
 }
Beispiel #3
0
 public BlockTranslation(BlockSyntax syntax, SyntaxTranslation parent) : base(syntax, parent)
 {
     Statements = syntax.Statements.Get <StatementSyntax, StatementTranslation>(this);
 }
Beispiel #4
0
 public CompilationUnitTranslation(CompilationUnitSyntax syntax, SyntaxTranslation parent) : base(syntax, null)
 {
     Members = syntax.Members.Get <MemberDeclarationSyntax, MemberDeclarationTranslation>(this);
 }