Package com.jetbrains.lang.dart.psi

Examples of com.jetbrains.lang.dart.psi.DartNamedFormalParameters


  }


  public static DartNamedParameterDescription[] getParameters(DartComponent element, DartGenericSpecialization specialization) {
    final DartFormalParameterList parameterList = PsiTreeUtil.getChildOfType(element, DartFormalParameterList.class);
    final DartNamedFormalParameters namedFormalParameters = parameterList == null ? null : parameterList.getNamedFormalParameters();
    if (namedFormalParameters == null) {
      return new DartNamedParameterDescription[0];
    }
    final List<DartDefaultFormalNamedParameter> list = namedFormalParameters.getDefaultFormalNamedParameterList();
    final DartNamedParameterDescription[] result = new DartNamedParameterDescription[list.size()];
    for (int i = 0, size = list.size(); i < size; i++) {
      final String normalFormalParameter =
        DartPresentableUtil.getPresentableNormalFormalParameter(list.get(i).getNormalFormalParameter(), specialization);
      final PsiElement valueElement = list.get(i).getExpression();
View Full Code Here

TOP

Related Classes of com.jetbrains.lang.dart.psi.DartNamedFormalParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.