예제 #1
0
 public static glsl.FieldDeclarationSyntax Translate(this cs.FieldDeclarationSyntax node)
 {
     return(new glsl.FieldDeclarationSyntax()
     {
         Qualifier = node.DescendantNodes().OfType <cs.AttributeSyntax>().Single().Translate(),
         Type = node.DescendantNodes().OfType <cs.VariableDeclarationSyntax>().Single().Type.Translate(),
         Identifier = node.DescendantNodes().OfType <cs.VariableDeclarationSyntax>().Single().Variables.Single().Identifier,
         SemicolonToken = node.SemicolonToken
     });
 }