public static TypeDeclarationList Create(NonCodeScope Scope) { var Ret = new TypeDeclarationList(); var Rec = Scope.State.Language.TypeDeclRecognizer; return(Rec != null && !Rec.Recognize(Scope, Ret) ? null : Ret); }
public bool Recognize(NonCodeScope Scope) { var State = Scope.State; if (State.Language.AliasDeclRecognizer != null) { if (!State.Language.AliasDeclRecognizer.Recognize(Scope, this)) { return(false); } } return(true); }