Esempio n. 1
0
 public JVariable GetVariable(JAst ast)
 {
     object reference;
     if (ast.TryGetAttribute(this, NodeAttributes.Variable, out reference)) {
         return (JVariable)reference;
     }
     return null;
 }
Esempio n. 2
0
File: Node.cs Progetto: borota/JTVS
 internal static JReference[] GetVariableReferences(Node node, JAst ast)
 {
     object reference;
     if (ast.TryGetAttribute(node, NodeAttributes.VariableReference, out reference)) {
         return (JReference[])reference;
     }
     return null;
 }
Esempio n. 3
0
 public static bool IsMissingCloseGrouping(this Node node, JAst ast)
 {
     object dummy;
     if (ast.TryGetAttribute(node, NodeAttributes.ErrorMissingCloseGrouping, out dummy)) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 4
0
 private static string GetWhiteSpace(Node node, JAst ast, object kind, string defaultValue = " ")
 {
     object whitespace;
     if (ast.TryGetAttribute(node, kind, out whitespace)) {
         return (string)whitespace;
     } else {
         return defaultValue;
     }
 }
Esempio n. 5
0
 public static bool IsIncompleteNode(this Node node, JAst ast)
 {
     object dummy;
     if (ast.TryGetAttribute(node, NodeAttributes.ErrorIncompleteNode, out dummy)) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 6
0
 public static bool IsAltForm(this Node node, JAst ast)
 {
     object dummy;
     if (ast.TryGetAttribute(node, NodeAttributes.IsAltFormValue, out dummy)) {
         return true;
     } else {
         return false;
     }
 }
Esempio n. 7
0
 public static string[] GetVerbatimNames(this Node node, JAst ast)
 {
     object names;
     if (ast.TryGetAttribute(node, NodeAttributes.VerbatimNames, out names)) {
         return (string[])names;
     } else {
         return null;
     }
 }
Esempio n. 8
0
 public static string GetVerbatimImage(this Node node, JAst ast)
 {
     object image;
     if (ast.TryGetAttribute(node, NodeAttributes.VerbatimImage, out image)) {
         return (string)image;
     } else {
         return null;
     }
 }
Esempio n. 9
0
 public static string[] GetNamesWhiteSpace(this Node node, JAst ast)
 {
     object whitespace;
     if (ast.TryGetAttribute(node, NodeAttributes.NamesWhiteSpace, out whitespace)) {
         return (string[])whitespace;
     } else {
         return null;
     }
 }