Package com.jetbrains.lang.dart.psi

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


    myValue = value;
  }


  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()];
View Full Code Here


    myText = text;
  }


  public static DartParameterDescription[] getParameters(DartComponent element, DartGenericSpecialization specialization) {
    final DartFormalParameterList parameterList = PsiTreeUtil.getChildOfType(element, DartFormalParameterList.class);
    if (parameterList == null) {
      return new DartParameterDescription[0];
    }
    final List<DartNormalFormalParameter> list = parameterList.getNormalFormalParameterList();
    final DartParameterDescription[] result = new DartParameterDescription[list.size()];
    for (int i = 0, size = list.size(); i < size; i++) {
      result[i] = new DartParameterDescription(DartPresentableUtil.getPresentableNormalFormalParameter(list.get(i), specialization));
    }
    return result;
View Full Code Here

TOP

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

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.