Example #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <remarks></remarks>
 public EcmaScriptIdentifier(string ident)
 {
     this.identifier =
         String.IsNullOrEmpty(ident) ?
         String.Empty :
         EcmaScriptIdentifier.VerifyIdentifier(ident, true);
 }
Example #2
0
 /// <summary>
 /// Verifies is a valid EcmaScript identifier
 /// </summary>
 /// <param name="ident">the identifier</param>
 /// <returns>identifier</returns>
 public static string VerifyIdentifier(string ident, bool nested)
 {
     return(EcmaScriptIdentifier.VerifyIdentifier(ident, nested, true));
 }